cppfs  1.2.0.5b71c2c98fb9
Cross-platform C++ file system library supporting multiple backends (Local-FS, SSH)
Functions
cppfs::fs Namespace Reference

Global file system functions. More...

Functions

CPPFS_API FileHandle open (const std::string &path, const LoginCredentials *credentials=nullptr)
 Open a file or directory. More...
 
CPPFS_API std::string sha1 (const std::string &str)
 Compute sha1 hash for string. More...
 
CPPFS_API std::string base64 (const std::string &str)
 Get base64 encoding for string. More...
 
CPPFS_API std::string fromBase64 (const std::string &base64)
 Get decoded string from base64 encoding. More...
 
CPPFS_API std::string hashToString (const unsigned char *hash)
 Convert hash buffer into string. More...
 

Detailed Description

Global file system functions.

Function Documentation

CPPFS_API FileHandle cppfs::fs::open ( const std::string &  path,
const LoginCredentials credentials = nullptr 
)

Open a file or directory.

Parameters
[in]pathPath to file or directory
[in]credentialsOptional login credentials (can be null)
Returns
File handle
CPPFS_API std::string cppfs::fs::sha1 ( const std::string &  str)

Compute sha1 hash for string.

Parameters
[in]strString
Returns
SHA1 hash
CPPFS_API std::string cppfs::fs::base64 ( const std::string &  str)

Get base64 encoding for string.

Parameters
[in]strString
Returns
Base64 encoded string
CPPFS_API std::string cppfs::fs::fromBase64 ( const std::string &  base64)

Get decoded string from base64 encoding.

Parameters
[in]base64Base64 encoded string
Returns
Decoded string
CPPFS_API std::string cppfs::fs::hashToString ( const unsigned char *  hash)

Convert hash buffer into string.

Parameters
[in]hashHash buffer
Returns
Hash string