From 5dc87e4456db444a48081bbcfab9294bf35a3f55 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 9 Jul 2012 17:39:04 +0300 Subject: [PATCH] Fix name of the rmpath function --- source/fs/dir.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.43.0