Filesystem library - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# Filesystem library

From cppreference.com
< cpp‎ | experimental

| This is work in progress, there may be inaccuracies

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.

path | represents a path (class) [edit]
filesystem_error | an exception thrown on file system errors (class) [edit]
directory_entry | a directory entry (class) [edit]
directory_iterator | an iterator to the contents of the directory (class) [edit]
recursive_directory_iterator | an iterator to the contents of a directory and its subdirectories (class) [edit]
file_type | the type of a file (enum) [edit]
perms | identifies file system permissions (enum) [edit]
file_status | represents file type and permissions (class) [edit]
space_info | information about free and available space on the filesystem (class) [edit]
copy_options | specifies semantics of copy operations (enum) [edit]
directory_options | options for iterating directory contents (enum) [edit]
file_time_type | represents file time values (typedef) [edit]
absolute | composes an absolute path (function) [edit]
canonical | composes a canonical path (function) [edit]
copy | copies files or directories (function) [edit]
copy_file | copies file contents (function) [edit]
copy_symlink | copies a symbolic link (function) [edit]
create_directorycreate_directories | creates new directory (function) [edit]
create_hard_link | creates a hard link (function) [edit]
create_symlinkcreate_directory_symlink | creates a symbolic link (function) [edit]
current_path | return current working directory (function) [edit]
exists | checks whether path refers to existing file system object (function) [edit]
equivalent | checks whether two paths refer to the same file system object (function) [edit]
file_size | returns the size of a file (function) [edit]
hard_link_count | returns the number of hard links referring to the specific file (function) [edit]
##### File types
is_block_file | checks whether the given path refers to block file (function) [edit]
is_character_file | checks whether the given path refers to a character file (function) [edit]
is_directory | checks whether the given path refers to a directory (function) [edit]
is_empty | checks whether the given path refers to an empty file or directory (function) [edit]
is_fifo | checks whether the given path refers to a FIFO (function) [edit]
is_other | checks whether the argument refers to an other file (function) [edit]
is_regular_file | checks whether the argument refers to a regular file (function) [edit]
is_socket | checks whether the argument refers to a socket (function) [edit]
is_symlink | checks whether the argument refers to a symbolic link (function) [edit]
Template:cpp/experimental/fs/dsc last write time Template:cpp/experimental/fs/dsc read symlink Template:cpp/experimental/fs/dsc remove Template:cpp/experimental/fs/dsc rename Template:cpp/experimental/fs/dsc resize file Template:cpp/experimental/fs/dsc space Template:cpp/experimental/fs/dsc status Template:cpp/experimental/fs/dsc system complete
temp_directory_path | returns a directory suitable for temporary files (function) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/experimental/fs&oldid=68701"