zig/lib/std/fs
Jakub Konka e0b77a6b77 Ensure Dir.deleteTree does not dereference symlinks
Otherwise, the behaviour can lead to unexpected results, resulting
in removing an entire tree that's not necessarily under the root.
Furthermore, this change is needed if are to properly handle dir
symlinks on Windows. Without explicitly requiring that a directory
or file is opened with `FILE_OPEN_REPARSE_POINT`, Windows automatically
dereferences all symlinks along the way. This commit adds another
option to `OpenDirOptions`, namely `.no_follow`, which defaults to
`false` and can be used to specifically open a directory symlink on
Windows or call `openat` with `O_NOFOLLOW` flag in POSIX.
2020-07-22 08:51:22 +02:00
..
file.zig Add std.fs.File.readAllAlloc tests 2020-06-22 20:03:21 -04:00
get_app_data_dir.zig Add/fix missing WASI functionality to pass libstd tests 2020-05-18 16:09:49 +02:00
path.zig std.mem.dupe is deprecated, move all references in std 2020-07-04 21:40:06 +03:00
test.zig Ensure Dir.deleteTree does not dereference symlinks 2020-07-22 08:51:22 +02:00
wasi.zig Fix incorrect continue condition in PreopeonList 2020-07-12 21:02:33 +00:00
watch.zig std.mem.dupe is deprecated, move all references in std 2020-07-04 21:40:06 +03:00