diff options
| author | Ryan Liptak <squeek502@hotmail.com> | 2023-12-21 23:15:12 -0800 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2023-12-22 13:47:19 +0200 |
| commit | 70b248497ab87471997c62a515bf4bb4109899b9 (patch) | |
| tree | 43cebd226cfe9cfdec7134c69d0c388a1369a533 /lib/std/Build/Cache.zig | |
| parent | 60982ea5bd05695a0e97205cf3de223bd9111767 (diff) | |
| download | zig-70b248497ab87471997c62a515bf4bb4109899b9.tar.gz zig-70b248497ab87471997c62a515bf4bb4109899b9.zip | |
fs: Add tests for deleteTree not following symlinks
In theory this is part of https://github.com/ziglang/zig/issues/18335, but these tests already pass since deleteTree does not depend on `OpenDirOptions.no_follow` behavior for these test cases:
- `deleteTree` always tries to delete the initial path as a file first, which will succeed on symlinks because `deleteFile` doesn't follow symlinks
- `deleteTree` when iterating a directory will get the type of symlinks as .sym_link, not as .directory (even if the symlink points to a directory), meaning it will never try to open a symlink as a directory.
Diffstat (limited to 'lib/std/Build/Cache.zig')
0 files changed, 0 insertions, 0 deletions
