Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(402)

Issue 2934983003: Improve error handling for file_path.rmtree() (Closed)

Created:
3 years, 6 months ago by M-A Ruel
Modified:
3 years, 6 months ago
Reviewers:
Vadim Sh.
CC:
chromium-reviews, infra-reviews+luci-py_chromium.org
Target Ref:
refs/heads/master
Project:
luci-py
Visibility:
Public.

Description

Improve error handling for file_path.rmtree() If there has been an error while deleting but the directory still disappeared, do not throw. Use a set to not list the same path mulitple times. R=vadimsh@chromium.org BUG=732891 Review-Url: https://codereview.chromium.org/2934983003 Committed: https://github.com/luci/luci-py/commit/32f1b4e8be313e65e99b5de5a7255f66452db4be

Patch Set 1 #

Total comments: 1

Patch Set 2 : Redo #

Total comments: 2

Patch Set 3 : fs.exits() call #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -48 lines) Patch
M client/utils/file_path.py View 1 2 3 chunks +74 lines, -48 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
M-A Ruel
3 years, 6 months ago (2017-06-13 19:08:55 UTC) #1
Vadim Sh.
https://codereview.chromium.org/2934983003/diff/1/client/utils/file_path.py File client/utils/file_path.py (right): https://codereview.chromium.org/2934983003/diff/1/client/utils/file_path.py#newcode1169 client/utils/file_path.py:1169: if errors and fs.exists(root): as far as I can ...
3 years, 6 months ago (2017-06-13 20:49:02 UTC) #2
M-A Ruel
Redid the CL, things didn't explode on staging
3 years, 6 months ago (2017-06-15 21:16:34 UTC) #3
Vadim Sh.
lgtm with small request https://codereview.chromium.org/2934983003/diff/20001/client/utils/file_path.py File client/utils/file_path.py (right): https://codereview.chromium.org/2934983003/diff/20001/client/utils/file_path.py#newcode1115 client/utils/file_path.py:1115: sys.stderr.write( please add fs.exists(root) here ...
3 years, 6 months ago (2017-06-16 22:18:11 UTC) #4
M-A Ruel
https://codereview.chromium.org/2934983003/diff/20001/client/utils/file_path.py File client/utils/file_path.py (right): https://codereview.chromium.org/2934983003/diff/20001/client/utils/file_path.py#newcode1115 client/utils/file_path.py:1115: sys.stderr.write( On 2017/06/16 22:18:10, Vadim Sh. wrote: > please ...
3 years, 6 months ago (2017-06-17 00:42:57 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2934983003/40001
3 years, 6 months ago (2017-06-17 00:43:03 UTC) #8
commit-bot: I haz the power
3 years, 6 months ago (2017-06-17 00:45:38 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://github.com/luci/luci-py/commit/32f1b4e8be313e65e99b5de5a7255f66452db4be

Powered by Google App Engine
This is Rietveld 408576698