From 0a2191e6fd18c2c6d2b9309f10303e49cb12adf2 Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 13 Sep 2018 21:50:23 +0300 Subject: [PATCH] Fix rmrf CE. GitOrigin-RevId: a19461f482d3aaa5d61dbdbc0796bc6c82bb260f --- tdutils/td/utils/port/path.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tdutils/td/utils/port/path.cpp b/tdutils/td/utils/port/path.cpp index b6957e18..7516dd95 100644 --- a/tdutils/td/utils/port/path.cpp +++ b/tdutils/td/utils/port/path.cpp @@ -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(); } }); }