Better way to avoid unlinking a non-existent file.

Review Request #1438 — Created Dec. 6, 2014 and submitted

benjyw
pants
8f379f1...
pants-reviews
patricklaw, zundel

This solves a race condition too (although there is still another race),
and is more consistent with similar patterns elsewhere in the file.

Relevant integration tests pass (after cleaning, so this triggers both a failed unlink and a successful one).

Manually tested the relevant code block.

PA
  1. Ship It!

  2. 
      
ZU
  1. Ship It!

  2. 
      
BE
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted as f8be3f9e95e33664863636f1607ff5614a5877d5.
Loading...