cppfs  1.2.0.5b71c2c98fb9
Cross-platform C++ file system library supporting multiple backends (Local-FS, SSH)
fs.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 
5 #include <string>
6 
7 #include <cppfs/cppfs_api.h>
8 
9 
10 namespace cppfs
11 {
12 
13 
14 class FileHandle;
15 class LoginCredentials;
16 
17 
22 namespace fs
23 {
24 
25 
38 CPPFS_API FileHandle open(const std::string & path, const LoginCredentials * credentials = nullptr);
39 
50 CPPFS_API std::string sha1(const std::string & str);
51 
62 CPPFS_API std::string base64(const std::string & str);
63 
74 CPPFS_API std::string fromBase64(const std::string & base64);
75 
86 CPPFS_API std::string hashToString(const unsigned char * hash);
87 
88 
89 } // namespace fs
90 
91 
92 } // namespace cppfs
CPPFS_API std::string sha1(const std::string &str)
Compute sha1 hash for string.
CPPFS_API std::string base64(const std::string &str)
Get base64 encoding for string.
Login credentials for accessing file systems (e.g., username, password, key files, etc.)
Definition: LoginCredentials.h:25
CPPFS_API std::string fromBase64(const std::string &base64)
Get decoded string from base64 encoding.
Handle for a file or directory.
Definition: FileHandle.h:43
CPPFS_API std::string hashToString(const unsigned char *hash)
Convert hash buffer into string.
Definition: AbstractFileHandleBackend.h:14
CPPFS_API FileHandle open(const std::string &path, const LoginCredentials *credentials=nullptr)
Open a file or directory.