File FilesystemHelpers.hΒΆ

Copyright

This code is licensed under the 3-clause BSD license.

Copyright ETH Zurich, Laboratory for Physical Chemistry, Reiher Group.

See LICENSE.txt for details.

namespace Scine

This header file contains functions that allow for common notation for common things that can be done at a different degree of derivatives.

This header contains alias definitions defining which classes to use for the different degrees of derivatives.

namespace Utils
class FilesystemHelpers
#include <FilesystemHelpers.h>

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)