William Shipley wrote: > What is the best practice approach for uploading a path with > sub-directories that may not exist?
I'd suggest using libssh2_sftp_mkdir() to try to create the directory, ignoring errors, then optionally _stat() to validate permissions and _chmod() to correct them, finally _open() the file. You'll have to handle one directory at a time. There is no -p. //Peter _______________________________________________ libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel