Advanced Multi-Physics (AMP)
On-Line Documentation
Namespaces | Functions
FileSystem.h File Reference
#include <filesystem>
#include <string>
#include <string_view>
Include dependency graph for FileSystem.h:

Go to the source code of this file.

Namespaces

namespace  AMP
 
namespace  AMP::IO
 

Functions

void AMP::IO::deleteFile (const std::string &filename)
 Delete a file. If the file does not exist, nothing will happen.
 
bool AMP::IO::exists (const std::string &filename)
 Check if a file exists and return true if it does.
 
bool AMP::IO::fileExists (const std::string &)
 
std::string AMP::IO::filename (const std::string &filename)
 Return the filename (strip the path)
 
size_t AMP::IO::fileSize (const std::string &filename)
 Return the file size.
 
std::string AMP::IO::getSuffix (const std::string &filename)
 Get the lower case suffix for a file.
 
std::string AMP::IO::path (const std::string &filename)
 Return the path to the file.
 
void AMP::IO::permissions (const std::string &filename, std::filesystem::perms mode)
 Set the permissions for the file or directory.
 
void AMP::IO::recursiveMkdir (const std::string &, mode_t)
 
void AMP::IO::recursiveMkdir (const std::string &, mode_t, bool)
 
void AMP::IO::recursiveMkdir (const std::string &path)
 
void AMP::IO::rename (const std::string &old_filename, const std::string &new_filename)
 Rename a file from old file name to new file name.
 
void AMP::IO::renameFile (const std::string &old_filename, const std::string &new_filename)
 



Advanced Multi-Physics (AMP)
Oak Ridge National Laboratory
Idaho National Laboratory
Los Alamos National Laboratory
This page automatically produced from the
source code by doxygen
Last updated: Tue Mar 10 2026 13:06:41.
Comments on this page