handle part files correctly
first check if a extension exists before comparing it
check shares for the real file and not for the .part file
Merge branch 'stable5' into fix_4533
fix part file handling and real size calculation, this should also solve #4581
if the files doesn't exist yet we start with the parent to search for shares
coding style fixes
remove error logs
remove some error_logs
Merge branch 'stable5' into fix_4533
remove some more debug output
Merge pull request #4551 from owncloud/fix_4533

Handle part files correctly