winfsp unit tests and fixes
This commit is contained in:
@ -257,6 +257,10 @@ auto make_file_uri(std::wstring_view path) -> std::wstring {
|
||||
}
|
||||
|
||||
auto strip_to_file_name(std::string path) -> std::string {
|
||||
if (path == "." || path == "..") {
|
||||
return path;
|
||||
}
|
||||
|
||||
#if defined(_WIN32)
|
||||
return ::PathFindFileNameA(path.c_str());
|
||||
#else // !defined(_WIN32)
|
||||
|
Reference in New Issue
Block a user