armarx::armem::server::ltm::util::fs Namespace Reference

Namespaces

namespace  detail
 

Functions

bool canCreateFiles (const std::filesystem::path &dir)
 Check if we can create files in this directory.
 
bool directoryExists (const std::filesystem::path &p)
 
void ensureDirectoryExists (const std::filesystem::path &p, bool createIfNotExistent=false)
 
void ensureFileExists (const std::filesystem::path &p, bool createIfNotExistent=false)
 
bool fileExists (const std::filesystem::path &p)
 
std::vector< std::filesystem::path > getAllDirectories (const std::filesystem::path &p)
 
std::vector< std::filesystem::path > getAllFiles (const std::filesystem::path &p)
 
bool hasWritePermission (const std::filesystem::path &p)
 Check if directory has write permission.
 
std::vector< unsigned char > readDataFromFile (const std::filesystem::path &p)
 
std::filesystem::path toPath (const std::filesystem::path &base, const armem::MemoryID &id)
 
void writeDataToFile (const std::filesystem::path &p, const std::vector< unsigned char > &data, bool write_atomic=true)
 

Function Documentation

◆ canCreateFiles()

bool canCreateFiles ( const std::filesystem::path & dir)

Check if we can create files in this directory.

+ Here is the caller graph for this function:

◆ directoryExists()

bool directoryExists ( const std::filesystem::path & p)
+ Here is the caller graph for this function:

◆ ensureDirectoryExists()

void ensureDirectoryExists ( const std::filesystem::path & p,
bool createIfNotExistent = false )

◆ ensureFileExists()

void ensureFileExists ( const std::filesystem::path & p,
bool createIfNotExistent = false )

◆ fileExists()

bool fileExists ( const std::filesystem::path & p)

◆ getAllDirectories()

std::vector< std::filesystem::path > getAllDirectories ( const std::filesystem::path & p)
+ Here is the caller graph for this function:

◆ getAllFiles()

std::vector< std::filesystem::path > getAllFiles ( const std::filesystem::path & p)

◆ hasWritePermission()

bool hasWritePermission ( const std::filesystem::path & p)

Check if directory has write permission.

+ Here is the caller graph for this function:

◆ readDataFromFile()

std::vector< unsigned char > readDataFromFile ( const std::filesystem::path & p)

◆ toPath()

std::filesystem::path toPath ( const std::filesystem::path & base,
const armem::MemoryID & id )

◆ writeDataToFile()

void writeDataToFile ( const std::filesystem::path & p,
const std::vector< unsigned char > & data,
bool write_atomic = true )