Verify file existence before deleting it

When creating a cached session file, a temporary file is generated; this
file is then renamed to the final cache file name. Afterwards, when
trying to erase this temporary file, a warning log entry is written
because the delete operation fails (the file does not exist anymore
giving it was renamed). Fix this by verifying a file exists before
trying to delete it.

Change-Id: If7e6435ccfbd5806a3167c6f07087a1082527628
1 file changed
tree: fcc07781c36b4560cd918d12b139945eebae4f96
  1. .gitignore
  2. .settings/
  3. BUCK
  5. src/