FilePackageRepository fails if it can't access a subdirectory
We use Directory.GetAllFiles(dir)
to get all the files in a file repository, but this throws with no results if any subdirectory is not accessible. We should recurse all child nodes ourselves and ignore the folders which are not accessible instead.
For example, on linux, the PackageCache is no longer functional if you run the following commands:
cd .tap/PackageCache
sudo su
mkdir unreadable
chmod 700 unreadable