Concept:FileSystemFile system API falls in the following categories:
- File attributes, or stat. APIs to retrieve various informations
about files, directories, and other filesystem entries. Most
implementations have one or more of the following:
- Gets/sets attributes by pathname.
- Gets/sets attributes via port or opened file descriptor.
- Gets/sets attributes via stat object, i.e. POSIX way.
- Directory API: read contents, create/remove directory,
remove/rename file, get/set current directory.
- Symbolic link API: symlink and readlink.
See also Concept:FileDescriptorAccess? for low-level
API dealing with file descriptors.
- Attributes
file-length
- Directory
current-directory, delete-file,
file-exists?
- Symlink
- Attributes
via pathname.
file-owner, file-permissions, file-read-access?,
file-write-access?, file-execute-access?,
change-file-mode, change-file-owner, file-modification-time,
file-size, directory?
- Directory
change-directory, current-directory,
create-directory, delete-directory, directory,
glob, delete-file, file-exists?
- Symlink
create-symbolic-link, read-symbolic-link.
- Other
create-fifo, fifo?
- Attributes
via pathname.
sys-stat, sys-lstat, sys-fstat?,
file-type, file-perm?, file-mode,
file-ino?, file-dev?, file-nlink, file-uid?,
file-gid?, file-size, file-atime?, file-mtime?,
file-ctime?, file-is-readable?,
file-is-writable?, file-is-executable?,
sys-chmod?, sys-chown?, sys-utime?, sys-access
- Directory
sys-chdir, sys-getcwd,
sys-mkdir, sys-rmdir, sys-readdir,
current-directory, home-directory,
directory-list, directory-list2?, directory-fold?,
make-directory*, create-directory*?,
remove-directory*?, delete-directory*?
- Symlink
sys-symlink, sys-readlink?
- Other
- Attributes
- via pathname:
accessible?, get-file-info, get-file/link-info,
- via port: get-port-info?
- accessors: file-info?, file-info-name,
file-info-type, file-type??, file-type-name?,
file-type, file-info-device, file-info-inode,
file-info-link-count, file-info-size,
file-info-owner, file-info-group, file-info-mode,
file-info-last-access, file-info-last-modification,
file-info-last-info-change, file-mode,
file-mode??, file-mode+?, file-mode-?,
file-mode=??, file-mode<=??, file-mode>=??,
file-mode->integer?, integer->file-mode?
- Directory
open-directory-stream, directory-stream?,
read-directory-stream, close-directory-stream,
list-directory, working-directory,
set-working-directory!, link, unlink,
remove-directory, rename, make-directory
- Symlink
- Other
make-fifo
- Attributes
via pathname. file-is-readable?, file-is-writable?,
file-is-executable?, file-is-directory?
- Directory
file-exists?, glob,
remove-file, rename-file, temporary-file-name,
getcwd, chdir
- Symlink
rio orange
|