FTP使用MKD命令创建路径 [英] FTP create path with MKD command

查看:2295
本文介绍了FTP使用MKD命令创建路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用命令将文件存储在FTP服务器上。例如FolderA / FolderB / FolderC / myfile.txt。我是否需要逐步创建每个文件夹?这将是:
MKD FolderA
MKD FolderB
MKD FolderC
STOR FolderA / FolderB / FolderC / myfile.txt

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

这篇关于FTP使用MKD命令创建路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆