26#ifndef ROUTER_SRC_MYSQL_REST_SERVICE_SRC_MRS_FILE_SYSTEM_FILE_SYSTEM_H_
27#define ROUTER_SRC_MYSQL_REST_SERVICE_SRC_MRS_FILE_SYSTEM_FILE_SYSTEM_H_
40class DbServiceEndpoint;
41class ContentFileEndpoint;
44namespace file_system {
59 const std::string &
path)
override;
61 const std::string &
path)
override;
Definition: db_service_endpoint.h:54
Definition: db_service_file_system.h:49
std::string parse_string_path(const std::string &path) override
Parses a path from a String.
Definition: db_service_file_system.cc:161
~DbServiceFileSystem() override=default
void remove(const std::string &path) override
Deletes a file.
Definition: db_service_file_system.cc:189
void check_access(const std::string &path, int64_t flags) override
Checks existence and accessibility of a file.
Definition: db_service_file_system.cc:165
std::shared_ptr< shcore::polyglot::ISeekable_channel > new_byte_channel(const std::string &path) override
Opens or creates a file returning a SeekableByteChannel to access the file content.
Definition: db_service_file_system.cc:195
std::shared_ptr< shcore::polyglot::IDirectory_stream > new_directory_stream(const std::string &path) override
Returns directory entries.
Definition: db_service_file_system.cc:227
void create_directory(const std::string &path) override
Creates a directory.
Definition: db_service_file_system.cc:184
void traverse_files(std::function< bool(const ContentFilePtr &)> callback)
Definition: db_service_file_system.cc:117
DbServiceFileSystem(endpoint::DbServiceEndpoint *endpoint)
Definition: db_service_file_system.cc:114
std::string to_absolute_path(const std::string &path) override
Resolves given path to an absolute path.
Definition: db_service_file_system.cc:232
ContentFilePtr lookup_file(const std::string &request_path)
Definition: db_service_file_system.cc:140
std::string to_real_path(const std::string &path) override
Returns the real (canonical) path of an existing file.
Definition: db_service_file_system.cc:236
endpoint::DbServiceEndpoint * m_service_endpoint
Definition: db_service_file_system.h:68
std::string parse_uri_path(const std::string &uri) override
Parses a path from an URI.
Definition: db_service_file_system.cc:157
Definition: polyglot_file_system.h:185
static int flags[50]
Definition: hp_test1.cc:40
static char * path
Definition: mysqldump.cc:150
std::shared_ptr< mrs::endpoint::ContentFileEndpoint > ContentFilePtr
Definition: db_service_file_system.h:46
std::weak_ptr< mrs::endpoint::ContentFileEndpoint > ContentFileWeakPtr
Definition: db_service_file_system.h:47
Definition: authorize_manager.h:48