Skip to main content
A collection of file system utility functions.

Functions

Detailed Description

A collection of file system utility functions.

Function Documentation

canonical()

Tries to convert url, which must exist, to an absolute path that has no symbolic link, dot, or dot-dot elements. Parameters Returns
  • On sucess, an absolute path that has no symbolic link, dot, or dot-dot-elements
  • If a link, dot or dot-dot resolution lookup failed for some reason, e.g. the url is given in a UNC/URI definition only the absolute path will be returned
Exceptions
This is simply an exception safer wrapper of boost::filesystem::canoncial

copyFile()

copies the specified file Parameters

createDirectories()

creates the directory and also subdirectories if required Parameters

exists()

Returns true if the given url exists Parameters

isDirectory()

Returns true if the given url is a directory Parameters

isRegularFile()

Returns true if the given url is a file Parameters

relative()

Get the relative path between two paths.
Works for URLs that are not existing on disk, too.
Parameters Returns A path object of the relative path.

removeAll()

removes the given path and its contents Parameters