Source
xxxxxxxxxx
85
85
for ( path_map::iterator it=returned_paths->begin( ); it != returned_paths->end( ); ++it ) {
86
86
// removal requested?
87
87
if ( it->second.second ) {
88
88
// does it look like one of our temporaries?
89
89
if ( it->first.compare(0,temporary_path.size(),temporary_path) == 0 &&
90
90
it->first.size( ) != temporary_path.size( ) ) {
91
91
File tmpfile(it->first);
92
92
if ( tmpfile.exists( ) && tmpfile.isWritable( ) ) {
93
93
if ( tmpfile.isDirectory(false) ) {
94
94
Directory tmpdir(tmpfile);
95
-
tmpdir.removeRecursive(false);
95
+
try {
96
+
tmpdir.removeRecursive(false);
97
+
} catch(...) { }
96
98
} else {
97
99
// why hassle with decerning symlinks from block special files from regular files, etc.
98
100
unlink(it->first.c_str( ));
99
101
}
100
102
}
101
103
}
102
104
}
103
105
}
104
106
delete kernel;
105
107
kernel = 0;