Search⌘ K
AI Features

Non-member functions

Explore how to manage files and directories using C++17 filesystem non-member functions. Learn to work with paths, copy files, modify permissions, query file sizes, and retrieve filesystem space info to optimize your file operations.

Many non-member functions exist for manipulating the filesystem, which are:

Non-member functions Description
absolute Composes an absolute path.
canonical and weakly_canonical Composes a canonical path.
relative and proximate Composes a relative path.
copy Copies files or directories.
copy_file Copies file contents.
copy_symlink Copies a symbolic link.
create_directory and create_directories Creates a new directory.
create_hard_link Creates a hard link.
...