return -1 if file is empty otherwise we run into infinite loops
resolvePath() needs to resolve the path for the owner, otherwise it doesn't work for Shared files
correctFolder() correct folder for the owner of the file. The Shared folder for the other users gets updated by the files_sharing app
remove debug code
changed the logic, this should fix the tests
check storage for every iteration
Share Updater doesn't need to call the cache updaters correctFolder method, this method always expect a path relativ to the current user
remove debug output, add comment
make sure that we operate on the owners Path because this path needs to be updated
check the storage for every iteration to make sure that we update the correct cache entry
tests should work if I explicitely log-in as a user
make sure that hooks are only executed when the app is enabled
disable encryption app for file cache updater test since the test doesn't use a completely initialized oc filesystem
make getUidAndFilename() private
Merge pull request #5513 from owncloud/fix_file_cache_updater

Fix file cache updater