Test valid path only if file info has to be retrieved
Test valid path only if file info has to be retrieved

Signed-off-by: Glandos <3840ee97977e4f8436636cdee495a233dcde7447@antipoul.fr>

nextcloud/server,nextcloud/server,nextcloud/server,nextcloud/server