Class Scine::Utils::FilesystemHelpers

class FilesystemHelpers

This class contains utility functions for dealing with files and directories.

Hides the use of Boost::filesystem.

Public Static Functions

static void createDirectories(const std::string &fullDirectoryPath)

Creates directories for fullDirectoryPath if they do not exist yet.

static void emptyDirectory(const std::string &directory)

Empty some given directory.

static bool isDirectory(const std::string &path)

Check whether a given path is a directory.

static std::string systemTmpDirectory()

Generate a temporary directory.

static std::string currentDirectory()

Get the name of the current directory.

static void copyFile(const std::string &from, const std::string &to)

Copy file (overwrites it if necessary)