StoragePlugin: add method MapToRelativeUTF8()
Replaces map_to_relative_path() from Mapper.cxx.
This commit is contained in:
@@ -69,6 +69,8 @@ public:
|
||||
Error &error) override;
|
||||
|
||||
virtual std::string MapUTF8(const char *uri_utf8) const override;
|
||||
|
||||
virtual const char *MapToRelativeUTF8(const char *uri_utf8) const override;
|
||||
};
|
||||
|
||||
std::string
|
||||
@@ -82,6 +84,12 @@ SmbclientStorage::MapUTF8(const char *uri_utf8) const
|
||||
return PathTraitsUTF8::Build(base.c_str(), uri_utf8);
|
||||
}
|
||||
|
||||
const char *
|
||||
SmbclientStorage::MapToRelativeUTF8(const char *uri_utf8) const
|
||||
{
|
||||
return PathTraitsUTF8::Relative(base.c_str(), uri_utf8);
|
||||
}
|
||||
|
||||
static bool
|
||||
GetInfo(const char *path, FileInfo &info, Error &error)
|
||||
{
|
||||
|
Reference in New Issue
Block a user