![]() |
cppfs
1.2.0.5b71c2c98fb9
Cross-platform C++ file system library supporting multiple backends (Local-FS, SSH)
|
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... | |
Global file system functions.
| CPPFS_API FileHandle cppfs::fs::open | ( | const std::string & | path, |
| const LoginCredentials * | credentials = nullptr |
||
| ) |
Open a file or directory.
| [in] | path | Path to file or directory |
| [in] | credentials | Optional login credentials (can be null) |
| CPPFS_API std::string cppfs::fs::sha1 | ( | const std::string & | str | ) |
Compute sha1 hash for string.
| [in] | str | String |
| CPPFS_API std::string cppfs::fs::base64 | ( | const std::string & | str | ) |
Get base64 encoding for string.
| [in] | str | String |
| CPPFS_API std::string cppfs::fs::fromBase64 | ( | const std::string & | base64 | ) |
Get decoded string from base64 encoding.
| [in] | base64 | Base64 encoded string |
| CPPFS_API std::string cppfs::fs::hashToString | ( | const unsigned char * | hash | ) |
Convert hash buffer into string.
| [in] | hash | Hash buffer |
1.8.11