mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-13 14:36:37 -04:00
Path can be empty
This commit is contained in:
parent
bc3ef4e28c
commit
a58c4b90fa
@ -15,6 +15,7 @@
|
||||
* \brief Structure to represent a path on the file system
|
||||
*/
|
||||
struct path {
|
||||
path();
|
||||
path(const std::string& path);
|
||||
|
||||
path(const path& rhs) = default;
|
||||
|
@ -7,6 +7,10 @@
|
||||
|
||||
#include "vfs/path.hpp"
|
||||
|
||||
path::path(){
|
||||
//Nothing to init
|
||||
}
|
||||
|
||||
path::path(const std::string& path){
|
||||
auto parts = std::split(path, '/');
|
||||
names.reserve(parts.size());
|
||||
|
Loading…
x
Reference in New Issue
Block a user