FileError
Source: lib/FileSystem.cs
This page is generated from the source by scripts/gen-reference.py.
What File, Directory and Path share: the error codes they return, which system the program runs on, and the C functions underneath.
Every system is called through one set of C functions, named as glibc names them, with glibc's struct layouts: __xstat64 and __lxstat64 (stat and lstat), opendir, readdir64 and closedir, mkdir, rmdir, rename, getcwd, chdir and __errno_location. Linux has them all. The others supply what their C library lacks or lays out differently, in their runtime files (mac/runtime.c, win/runtime.c, wasm/runtime.c). On Windows the ones the Universal CRT also has are linked with /wrap:, as fopen is, and take UTF-8.
Directories, file information, moving and copying work on Linux, macOS, Windows and WebAssembly (under wasmtime, inside the directories given with --dir). Path's functions work everywhere: they only look at text. ZeroSystem(), in each target's assembly or runtime file, says which system this is.
Why a file or directory operation failed, or None.