Fix rmrf CE.

GitOrigin-RevId: a19461f482d3aaa5d61dbdbc0796bc6c82bb260f
This commit is contained in:
levlam 2018-09-13 21:50:23 +03:00
parent 56f5f4e263
commit 0a2191e6fd

View File

@ -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();
}
});
}