From: Mikko Rasa Date: Mon, 9 Jul 2012 14:39:04 +0000 (+0300) Subject: Fix name of the rmpath function X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=5dc87e4456db444a48081bbcfab9294bf35a3f55;p=libs%2Fcore.git Fix name of the rmpath function --- diff --git a/source/fs/dir.cpp b/source/fs/dir.cpp index afc2b66..2575beb 100644 --- a/source/fs/dir.cpp +++ b/source/fs/dir.cpp @@ -104,14 +104,14 @@ void rmdir(const Path &path) throw system_error("rmdir"); } -void rmdirs(const Path &path) +void rmpath(const Path &path) { list files = list_files(path); for(list::iterator i=files.begin(); i!=files.end(); ++i) { Path p = path / *i; if(is_dir(p)) - rmdirs(p); + rmpath(p); else unlink(p); }