wrap stat() call in try/catch block and write warning to the owncloud.log. This allows us to remove sensitive data like passwords