# Functions
Chmod changes the mode of the named file to mode.
Chtimes changes the access and modification times of the named file, similar to the Unix utime() or utimes() functions.
Create creates the named file with mode 0666 (before umask), truncating it if it already exists.
DeviceID extracts the device ID from an os.FileInfo object by casting it to syscall.Stat_t.
ExtendedStat returns an ExtendedFileInfo constructed from the os.FileInfo.
HasPathPrefix returns true if p is a subdir of (or a file within) base.
IsRegularFile returns true if fi belongs to a normal file.
Link creates newname as a hard link to oldname.
Lstat returns the FileInfo structure describing the named file.
Mkdir creates a new directory with the specified name and permission bits.
MkdirAll creates a directory named path, along with any necessary parents, and returns nil, or else returns an error.
Open opens a file for reading.
OpenFile is the generalized open call; most users will use Open or Create instead.
Readlink returns the destination of the named symbolic link.
Remove removes the named file or directory.
RemoveAll removes path and any children it contains.
RemoveIfExists removes a file, returning no error if it does not exist.
Rename renames (moves) oldpath to newpath.
Stat returns a FileInfo structure describing the named file.
Symlink creates newname as a symbolic link to oldname.
TempFile creates a temporary file which has already been deleted (on supported platforms).
TestChdir changes the current directory to dest, the function back returns to the previous directory.
TestTempFile returns a new temporary file, which is removed when cleanup() is called.
Walk walks the file tree rooted at root, calling walkFn for each file or directory in the tree, including root.
# Constants
append data to the file when writing.
create a new file if none exists.
used with O_CREATE, file must not exist.
O_NOFOLLOW instructs the kernel to not follow symlinks when opening a file.
don't block open on fifos etc.
open the file read-only.
open the file read-write.
open for synchronous I/O.
if possible, truncate file when opened.
open the file write-only.
# Variables
ErrFileEmpty is returned inside a *os.PathError by Read() for the file opened from the fs provided by Reader when no data could be read and AllowEmptyFile is not set.
# Structs
ExtendedFileInfo is an extended stat_t, filled with attributes that are supported by most operating systems.
Local is the local file system.
Reader is a file system which provides a directory with a single file.
Track is a wrapper around another file system which installs finalizers for open files which call panic() when they are not closed when the garbage collector releases them.