fixing problem introduced by ignoring file existence when negating isFile to achieve isDirectory in FileCacheProvider.