Expand description
Filesystem helpers: path comparison, permission bits, symlink removal.
Functions§
- make_
executable - Sets executable permission bits (+x) on Unix; no-op on Windows.
- remove_
symlink_ dir_ like - Remove a path that is a symlink, handling the platform difference between
symlinks to directories (Windows:
remove_dir) and symlinks to files (Unix:remove_file). ReturnsOk(false)ifpathis not a symlink. - same_
content - Check whether two files have identical content. Returns false if either file doesn’t exist or can’t be read, or if their sizes differ (avoids reading content when lengths don’t match).
- same_
file - Check whether two paths refer to the same file on disk. Returns false if either path doesn’t exist or can’t be canonicalized.