Fix name of the rmpath function
authorMikko Rasa <tdb@tdb.fi>
Mon, 9 Jul 2012 14:39:04 +0000 (17:39 +0300)
committerMikko Rasa <tdb@tdb.fi>
Mon, 9 Jul 2012 14:39:04 +0000 (17:39 +0300)
source/fs/dir.cpp

index afc2b6696800c2d157b5d63962572679a1d77de9..2575beb76580de0578c51f9da5aa38041e77aabd 100644 (file)
@@ -104,14 +104,14 @@ void rmdir(const Path &path)
                throw system_error("rmdir");
 }
 
-void rmdirs(const Path &path)
+void rmpath(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))
-                       rmdirs(p);
+                       rmpath(p);
                else
                        unlink(p);
        }