ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
fs_compat.h File Reference
#include <cerrno>
#include <string>
#include <vector>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
Include dependency graph for fs_compat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  ModuleBase

Functions

std::string ModuleBase::absolute_path_for_log (const std::string &path)
 Return an absolute path for logging, or the original path if getcwd fails.
int ModuleBase::make_directory (const std::string &path)
 Create a single directory, portably.
bool ModuleBase::ensure_directory (const std::string &path)
 Ensure a directory exists, creating it lazily if needed.