mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-14 06:56:51 -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
|
* \brief Structure to represent a path on the file system
|
||||||
*/
|
*/
|
||||||
struct path {
|
struct path {
|
||||||
|
path();
|
||||||
path(const std::string& path);
|
path(const std::string& path);
|
||||||
|
|
||||||
path(const path& rhs) = default;
|
path(const path& rhs) = default;
|
||||||
|
@ -7,6 +7,10 @@
|
|||||||
|
|
||||||
#include "vfs/path.hpp"
|
#include "vfs/path.hpp"
|
||||||
|
|
||||||
|
path::path(){
|
||||||
|
//Nothing to init
|
||||||
|
}
|
||||||
|
|
||||||
path::path(const std::string& path){
|
path::path(const std::string& path){
|
||||||
auto parts = std::split(path, '/');
|
auto parts = std::split(path, '/');
|
||||||
names.reserve(parts.size());
|
names.reserve(parts.size());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user