Namespaces
Variants
Views
Actions

Filesystem library

From cppreference.com

The Filesystem library provides facilities for performing operations on file systems and their components, such a paths, regular files, and directories.

The Filesystem library currently is described not in the C++ standard, but in separate Technical Specification. It is implementation-defined whether the Filesystem library is provided.

Some functionality may not be provided by the implementation if the underlying file system does not support it.

The behavior of the implementation may be different than described here in the presence of file-system races.


Template:cpp/experimental/fs/dsc last write timeTemplate:cpp/experimental/fs/dsc read symlinkTemplate:cpp/experimental/fs/dsc removeTemplate:cpp/experimental/fs/dsc renameTemplate:cpp/experimental/fs/dsc resize fileTemplate:cpp/experimental/fs/dsc spaceTemplate:cpp/experimental/fs/dsc statusTemplate:cpp/experimental/fs/dsc system complete
represents a path
(class) [edit]
an exception thrown on file system errors
(class) [edit]
a directory entry
(class) [edit]
an iterator to the contents of the directory
(class) [edit]
an iterator to the contents of a directory and its subdirectories
(class) [edit]
the type of a file
(enum) [edit]
identifies file system permissions
(enum) [edit]
represents file type and permissions
(class) [edit]
information about free and available space on the filesystem
(class) [edit]
specifies semantics of copy operations
(enum) [edit]
options for iterating directory contents
(enum) [edit]
represents file time values
(typedef) [edit]
composes an absolute path
(function) [edit]
composes a canonical path
(function) [edit]
copies files or directories
(function) [edit]
copies file contents
(function) [edit]
copies a symbolic link
(function) [edit]
creates new directory
(function) [edit]
creates a hard link
(function) [edit]
creates a symbolic link
(function) [edit]
return current working directory
(function) [edit]
checks whether path refers to existing file system object
(function) [edit]
checks whether two paths refer to the same file system object
(function) [edit]
returns the size of a file
(function) [edit]
returns the number of hard links referring to the specific file
(function) [edit]
File types
checks whether the given path refers to block file
(function) [edit]
checks whether the given path refers to a character file
(function) [edit]
checks whether the given path refers to a directory
(function) [edit]
checks whether the given path refers to an empty file or directory
(function) [edit]
checks whether the given path refers to a FIFO
(function) [edit]
checks whether the argument refers to an other file
(function) [edit]
checks whether the argument refers to a regular file
(function) [edit]
checks whether the argument refers to a socket
(function) [edit]
checks whether the argument refers to a symbolic link
(function) [edit]
returns a directory suitable for temporary files
(function) [edit]