Creating remote folder error with permissions
I need to create a remote folder on a sftp server and i use the workaround of creating it empty locally then "putFile" it to the server.
this works fine if i'm not specifying any permission, but it fails with the error -2146233079 operation is not valid due to the current status of the object. interesting enough it works with the normal files permissions.
here the code i use to assign permissions.
if i comment the line number 3 everything works.
(i'm using VBA)
this works fine if i'm not specifying any permission, but it fails with the error -2146233079 operation is not valid due to the current status of the object. interesting enough it works with the normal files permissions.
here the code i use to assign permissions.
myFilePermissions.Text = "rwxrwxrwx" myTransferOptions.FilePermissions = myFilePermissions myTransferOptionsFolder.FilePermissions = myFilePermissions myTransferOptionsFolder.TransferMode = TransferMode_Binary myTransferOptions.TransferMode = TransferMode_Binary Set transferResult = mySession.PutFiles(SourceFolder , RemoteFolder , False, myTransferOptionsFolder) Set transferResult = mySession.PutFiles(SourceFolder & "/" & FileName , RemoteFolder , False, myTransferOptions)
if i comment the line number 3 everything works.
(i'm using VBA)