Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FTP create path with MKD command

Tags:

ftp

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?

like image 740
Bram W. Avatar asked Jun 07 '26 07:06

Bram W.


1 Answers

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
like image 61
Eugene Mayevski 'Callback Avatar answered Jun 10 '26 19:06

Eugene Mayevski 'Callback