zig/lib/std/fs
Andrew Kelley d87cd06296 rework zig fmt to use less syscalls and open fds
* `std.fs.Dir.Entry.Kind` is moved to `std.fs.File.Kind`
 * `std.fs.File.Stat` gains the `kind` field, so performing a stat() on
   a File now tells what kind of file it is. On Windows this only will
   distinguish between directories and files.
 * rework zig fmt logic so that in the case of opening a file and
   discovering it to be a directory, it closes the file descriptor
   before re-opening it with O_DIRECTORY, using fewer simultaneous open
   file descriptors when walking a directory tree.
 * rework zig fmt logic so that it pays attention to the kind of
   directory entries, and when it sees a sub-directory it attempts to
   open it as a directory rather than a file, reducing the number of
   open() syscalls when walking a directory tree.
2020-06-20 18:27:37 -04:00
..
file.zig rework zig fmt to use less syscalls and open fds 2020-06-20 18:27:37 -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 fix memory errors 2020-06-09 00:17:22 -04:00
test.zig Prefer Files to paths in std.debug. Additionally [breaking] add a flags parameter to openSelfExe and stop exporting openElfDebugInfo. 2020-05-29 18:27:39 -04:00
wasi.zig Add unit test for std.fs.wasi.PreopenList 2020-06-11 23:00:02 +02:00
watch.zig std lib API deprecations for the upcoming 0.6.0 release 2020-03-30 14:23:22 -04:00