Non-member functions

Apart from the classes, C++ has pre-defined functions to help us fully use filesystem library.

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