Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
AMReX_FileSystem.cpp File Reference
#include <AMReX_FileSystem.H>
#include <AMReX_Print.H>
#include <AMReX_Vector.H>
#include <AMReX.H>
#include <filesystem>
#include <system_error>
#include <cerrno>
#include <cstring>
#include <sys/stat.h>

Namespaces

namespace  amrex
 
namespace  amrex::FileSystem
 

Functions

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.
 
std::string amrex::FileSystem::CurrentPath ()
 Return the current working directory.
 
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.
 
bool amrex::FileSystem::CreateDirectories (std::string const &path, mode_t mode, bool verbose=false)
 Create a directory and any missing parent directories.