Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
AMReX_FileSystem.H File Reference
#include <AMReX_Config.H>
#include <string>
#include <sys/types.h>

Go to the source code of this file.

Namespaces

namespace  amrex
 
namespace  amrex::FileSystem
 

Functions

bool amrex::FileSystem::CreateDirectories (std::string const &path, mode_t mode, bool verbose=false)
 Create a directory and any missing parent directories.
 
std::string amrex::FileSystem::CurrentPath ()
 Return the current working directory.
 
bool amrex::FileSystem::Exists (std::string const &filename)
 Check if the given path exists. Symbolic links are checked without following the link, so a dangling symbolic link is considered to exist.
 
bool amrex::FileSystem::Remove (std::string const &filename)
 Remove a file, symbolic link, or empty directory.
 
bool amrex::FileSystem::RemoveAll (std::string const &p)
 Recursively remove a path.