From 26c1e7be9af1438d5bc4a7cc2eece60682ee38c2 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Sat, 27 Apr 2024 16:58:00 +0800 Subject: [PATCH] docs: add methods to `Url` type --- docs/plugins/types.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/plugins/types.md b/docs/plugins/types.md index f993bdcb..7ef9d4f2 100644 --- a/docs/plugins/types.md +++ b/docs/plugins/types.md @@ -71,6 +71,13 @@ Properties: - `is_search` - Whether the file represented by this url from the search result - `is_archive` - Whether the file represented by this url from an archive +Methods: + +- `name()` - The file name of this url +- `stem()` - The file name without the extension of this url +- `join(url)` - Join this url with another url +- `parent()` - The url of the parent directory + Meta methods: - `__eq(another_url)`