Resolving entry names

Some more string manipulation fluff
This commit is contained in:
x1nixmzeng
2015-02-13 00:26:02 +00:00
parent dc731f6a31
commit 0d0b406acf
3 changed files with 28 additions and 2 deletions

View File

@@ -23,8 +23,7 @@ Entry::Entry(Device* device, const std::string& path)
: device_(device), path_(path) {
assert_not_null(device);
absolute_path_ = device->path() + path;
// TODO(benvanik): last index of \, unless \ at end, then before that
name_ = "";
name_ = poly::find_name_from_path(path);
}
Entry::~Entry() = default;