Concept:FileSystem

File 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.


ChezScheme

Attributes

file-length

Directory

current-directory, delete-file, file-exists?

Symlink

Chicken

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?

Gauche

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

Scheme48

Attributes

STk

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