mirror of https://github.com/BOINC/boinc.git
recursive clean out dir
svn path=/trunk/boinc/; revision=675
This commit is contained in:
parent
5eadc314b5
commit
c022311f51
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue