mimic path.filename()

This commit is contained in:
qPCR4vir
2015-05-24 02:00:06 +02:00
parent 888e65aa84
commit a42931830f
2 changed files with 14 additions and 14 deletions

View File

@@ -110,7 +110,7 @@ namespace nana {
#endif
}
nana::string path::name() const
nana::string path::filename() const
{
string_t::size_type pos = text_.find_last_of(splstr);
#if defined(NANA_WINDOWS)
@@ -136,9 +136,9 @@ namespace nana {
for (auto & f : files)
{
if (f.attr.directory)
rm_dir_recursive(path + f.path().name());
rm_dir_recursive(path + f.path().filename());
else
rmfile((path + f.path().name()).c_str());
rmfile((path + f.path().filename()).c_str());
}
return rmdir(dir.c_str(), true);