file.patch: return False result when unable to cache file
Merge pull request #10882 from terminalmage/10380

file.patch: return False result when unable to cache file