Unable to create directory with subdirectorys using sftp

Advertisement

Bjoern
Joined:
Posts:
1
Location:
Germany

Unable to create directory with subdirectorys using sftp

Hi,
i need to create paths with subdirectorys, with sftp protocol it returns an error:
WinSCP.SessionRemoteException: "Error creating folder '/home/pdf/2019/1'.
No such file or directory.

The path "/home/pdf" already exists, but the subpath "2019/1" does not exist
When i am creating every single subdirectory in one step, it works. there is no need for until i am using the ftp prototol instead of sftp.

i am using Version 5.13.7, testing down to 5.13.3 and there is allways the same error.

i also testet different sftp servers (Synology, FileZilla Server, Webhosted SFTP) with the same result

is it a bug?

greetings :)

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: Unable to create directory with subdirectorys using sftp

You cannot use Session.CreateDirectory method to create multiple levels of folders in one go.

Reply with quote

Advertisement

You can post new topics in this forum