I need to store a file on a FTP server using commands. For example FolderA/FolderB/FolderC/myfile.txt. Do I need to create each folder step by step? That would be: MKD FolderA MKD FolderB MKD FolderC STOR FolderA/FolderB/FolderC/myfile.txt
Or is there a quicker/better way to do this?
Some servers understand complex paths, but the standard way is to create them one by one:
MKD FolderA
CWD FolderA
MKD FolderB
CWD FolderB
MKD FolderC
CWD FolderC
STOR myfile.txt
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With