Fix rmrf CE.
GitOrigin-RevId: a19461f482d3aaa5d61dbdbc0796bc6c82bb260f
This commit is contained in:
parent
56f5f4e263
commit
0a2191e6fd
@ -81,9 +81,9 @@ Status mkpath(CSlice path, int32 mode) {
|
||||
Status rmrf(CSlice path) {
|
||||
return walk_path(path, [](CSlice path, bool is_dir) {
|
||||
if (is_dir) {
|
||||
return rmdir(path);
|
||||
rmdir(path).ignore();
|
||||
} else {
|
||||
return unlink(path);
|
||||
unlink(path).ignore();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user