From c022311f51bcfbddb71bef88ee98bb98577c6509 Mon Sep 17 00:00:00 2001 From: Eric Heien Date: Mon, 2 Dec 2002 20:51:47 +0000 Subject: [PATCH] recursive clean out dir svn path=/trunk/boinc/; revision=675 --- lib/filesys.C | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/filesys.C b/lib/filesys.C index 4c1dbbbbba..4250aee131 100755 --- a/lib/filesys.C +++ b/lib/filesys.C @@ -199,6 +199,12 @@ int clean_out_dir(char* dirpath) { retval = dir_scan(filename, dirp); if (retval) break; sprintf(path, "%s/%s", dirpath, filename); + clean_out_dir(path); +#ifdef _WIN32 + RemoveDirectory(path); +#else + rmdir(path); +#endif retval = file_delete(path); if (retval) { dir_close(dirp);