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

Namespaces

namespace  detail
 

Functions

bool canCreateFiles (const std::filesystem::path &dir)
 
bool directoryExists (const std::filesystem::path &p)
 
void ensureDirectoryExists (const std::filesystem::path &p, bool createIfNotExistent)
 
void ensureFileExists (const std::filesystem::path &p, bool createIfNotExistent)
 
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)
 
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)
 

Function Documentation

◆ canCreateFiles()

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

Definition at line 376 of file filesystem.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ directoryExists()

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

Definition at line 144 of file filesystem.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ensureDirectoryExists()

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

Definition at line 156 of file filesystem.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ensureFileExists()

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

Definition at line 180 of file filesystem.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fileExists()

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

Definition at line 150 of file filesystem.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getAllDirectories()

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

Definition at line 308 of file filesystem.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getAllFiles()

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

Definition at line 327 of file filesystem.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hasWritePermission()

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

Definition at line 346 of file filesystem.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ readDataFromFile()

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

Definition at line 279 of file filesystem.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toPath()

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

Definition at line 108 of file filesystem.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ writeDataToFile()

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

Definition at line 194 of file filesystem.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: