git-lfs/fs
brian m. carlson ee362cd707
fs: gracefully handle missing temporary directory
When we are running in a repository where we lack write permissions,
we'll try to clean up temporary files nevertheless.  However, in such a
case, we may not have even been able to create a temporary directory if
one doesn't exist.

With the previous commit, we fixed the hang that occurred here, but we
print an error message like so:

  Error clearing old temp files: stat /tmp/repo/.git/lfs/tmp: no such file or directory

The user probably doesn't care about the fact that we don't have a
temporary directory in this case, and if there were no temporary files
to clean up because there was no temporary directory, then we've already
accomplished our goal.  Let's check for the temporary directory
existing, and if it doesn't, we'll just silently do nothing.
2020-08-06 21:15:06 +00:00
..
cleanup.go fs: gracefully handle missing temporary directory 2020-08-06 21:15:06 +00:00
fs_test.go fs: expose repository permissions 2018-12-13 17:51:02 +00:00
fs.go Fix error strings to follow Go guidelines 2019-10-22 17:33:49 +03:00