Cache: check for invalid paths in getFileInfo/getDirectoryContent
Cache: fix copy-paste errors
Merge pull request #1436 from owncloud/cache_check_path

Cache: check for invalid paths in getFileInfo/getDirectoryContent