Implement DirAccess.is_equivalent method.

This commit is contained in:
Pāvels Nadtočajevs 2025-03-25 12:47:51 +02:00
parent 6b5b84c0c5
commit d5cea9bb2e
No known key found for this signature in database
GPG key ID: 8413210218EF35D2
7 changed files with 67 additions and 0 deletions

View file

@ -248,6 +248,14 @@
[b]Note:[/b] This method is implemented on macOS, Linux (for EXT4 and F2FS filesystems only) and Windows. On other platforms, it always returns [code]true[/code].
</description>
</method>
<method name="is_equivalent" qualifiers="const">
<return type="bool" />
<param index="0" name="path_a" type="String" />
<param index="1" name="path_b" type="String" />
<description>
Returns [code]true[/code] if paths [param path_a] and [param path_b] resolve to the same file system object. Returns [code]false[/code] otherwise, even if the files are bit-for-bit identical (e.g., identical copies of the file that are not symbolic links).
</description>
</method>
<method name="is_link">
<return type="bool" />
<param index="0" name="path" type="String" />