projects
/
libs
/
core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
651cfe0
)
Fix name of the rmpath function
author
Mikko Rasa
<tdb@tdb.fi>
Mon, 9 Jul 2012 14:39:04 +0000
(17:39 +0300)
committer
Mikko Rasa
<tdb@tdb.fi>
Mon, 9 Jul 2012 14:39:04 +0000
(17:39 +0300)
source/fs/dir.cpp
patch
|
blob
|
history
diff --git
a/source/fs/dir.cpp
b/source/fs/dir.cpp
index afc2b6696800c2d157b5d63962572679a1d77de9..2575beb76580de0578c51f9da5aa38041e77aabd 100644
(file)
--- a/
source/fs/dir.cpp
+++ b/
source/fs/dir.cpp
@@
-104,14
+104,14
@@
void rmdir(const Path &path)
throw system_error("rmdir");
}
-void rm
dirs
(const Path &path)
+void rm
path
(const Path &path)
{
list<string> files = list_files(path);
for(list<string>::iterator i=files.begin(); i!=files.end(); ++i)
{
Path p = path / *i;
if(is_dir(p))
- rm
dirs
(p);
+ rm
path
(p);
else
unlink(p);
}