mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-11 05:23:29 -04:00
More portability fixes
This commit is contained in:
parent
1f8752fa23
commit
056dab970b
@ -297,7 +297,7 @@ size_t os_access_mock::size() const { return root_ ? root_->size() : 0; }
|
|||||||
|
|
||||||
std::vector<std::string> os_access_mock::splitpath(fs::path const& path) {
|
std::vector<std::string> os_access_mock::splitpath(fs::path const& path) {
|
||||||
std::vector<std::string> parts;
|
std::vector<std::string> parts;
|
||||||
folly::split('/', path.native(), parts);
|
folly::split('/', path.string(), parts);
|
||||||
while (!parts.empty() && parts.front().empty()) {
|
while (!parts.empty() && parts.front().empty()) {
|
||||||
parts.erase(parts.begin());
|
parts.erase(parts.begin());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user