Properly retrieve file permissions
Factor out +URLHasDirectoryPath: so FTP can handle another URL quirk
Merge branch 'curlhandle-4' into ck2-uploader