diff options
author | Haoyu Qiu <timothyqiu32@gmail.com> | 2021-12-15 13:41:00 +0800 |
---|---|---|
committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2021-12-15 21:13:35 +0800 |
commit | 67f04b381bea03857c21d6bda3eb56cfb6c60fd5 (patch) | |
tree | 5a953bdc3f72d5bb605e9934c67de655209e5db9 /doc/classes | |
parent | 1930fc8b3150e3084c16557d82dc2c517e3f292b (diff) | |
download | redot-engine-67f04b381bea03857c21d6bda3eb56cfb6c60fd5.tar.gz |
Add / to the unix shortcut drive list
Also made `get_current_drive()` to pick the longest match on Unix.
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/Directory.xml | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/doc/classes/Directory.xml b/doc/classes/Directory.xml index dbf5e31da4..3f0a5610b1 100644 --- a/doc/classes/Directory.xml +++ b/doc/classes/Directory.xml @@ -119,13 +119,19 @@ <return type="String" /> <argument index="0" name="idx" type="int" /> <description> - On Windows, returns the name of the drive (partition) passed as an argument (e.g. [code]C:[/code]). On other platforms, or if the requested drive does not exist, the method returns an empty String. + On Windows, returns the name of the drive (partition) passed as an argument (e.g. [code]C:[/code]). + On macOS, returns the path to the mounted volume passed as an argument. + On Linux, returns the path to the mounted volume or GTK 3 bookmark passed as an argument. + On other platforms, or if the requested drive does not exist, the method returns an empty String. </description> </method> <method name="get_drive_count"> <return type="int" /> <description> - On Windows, returns the number of drives (partitions) mounted on the current filesystem. On other platforms, the method returns 0. + On Windows, returns the number of drives (partitions) mounted on the current filesystem. + On macOS, returns the number of mounted volumes. + On Linux, returns the number of mounted volumes and GTK 3 bookmarks. + On other platforms, the method returns 0. </description> </method> <method name="get_files"> |