2016-04-14 00:59:00 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
2017-08-15 14:03:07 +02:00
|
|
|
#include <string>
|
|
|
|
|
|
2016-04-14 00:59:00 +02:00
|
|
|
namespace vfs
|
|
|
|
|
{
|
2016-06-02 17:16:01 +02:00
|
|
|
// Mount VFS device
|
|
|
|
|
bool mount(const std::string& dev_name, const std::string& path);
|
|
|
|
|
|
|
|
|
|
// Convert VFS path to fs path
|
2018-02-09 13:24:46 +01:00
|
|
|
std::string get(const std::string& vpath);
|
2017-10-11 02:19:32 +02:00
|
|
|
|
|
|
|
|
// Escape VFS path by replacing non-portable characters with surrogates
|
|
|
|
|
std::string escape(const std::string& path);
|
|
|
|
|
|
|
|
|
|
// Invert escape operation
|
|
|
|
|
std::string unescape(const std::string& path);
|
2016-04-14 00:59:00 +02:00
|
|
|
}
|