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)
 
std::vector< unsigned char > gzipCompress (const std::vector< unsigned char > &data, int level)
 
std::vector< unsigned char > gzipDecompress (const std::vector< unsigned char > &data)
 
bool hasWritePermission (const std::filesystem::path &p)
 
bool isGzip (const std::vector< unsigned char > &data)
 
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, WriteMode mode)
 

Function Documentation

◆ canCreateFiles()

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

Definition at line 478 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 145 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 157 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 181 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 151 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 410 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 429 of file filesystem.cpp.

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

◆ gzipCompress()

std::vector< unsigned char > gzipCompress ( const std::vector< unsigned char > & data,
int level )

Definition at line 329 of file filesystem.cpp.

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

◆ gzipDecompress()

std::vector< unsigned char > gzipDecompress ( const std::vector< unsigned char > & data)

Definition at line 364 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 448 of file filesystem.cpp.

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

◆ isGzip()

bool isGzip ( const std::vector< unsigned char > & data)

Definition at line 315 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 286 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 109 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,
WriteMode mode )

Definition at line 195 of file filesystem.cpp.

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