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)

◆ directoryExists()

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

◆ ensureDirectoryExists()

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

◆ ensureFileExists()

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

◆ fileExists()

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

◆ getAllDirectories()

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

◆ getAllFiles()

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

◆ gzipCompress()

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

◆ gzipDecompress()

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

◆ hasWritePermission()

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

◆ isGzip()

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

◆ 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,
WriteMode mode )