summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2016-05-26 08:36:00 -0700
committerTim Graham <timograham@gmail.com>2016-05-31 12:03:27 -0400
commit359be1c8702ede41e7fe823ed13350795ba96a61 (patch)
tree064509b4b6e7537d24890b0049ef9ca4e171387a /docs
parente3877c53edb33271b0f31d20e60a924848692026 (diff)
Fixed #26691 -- Removed checking for a file's existence before deleting.
File operations always raise a ENOENT error when a file doesn't exist. Checking the file exists before the operation adds a race condition condition where the file could be removed between operations. As the operation already raises an error on a missing file, avoid this race and avoid checking the file exists twice. Instead only check a file exists by catching the ENOENT error.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions