简体   繁体   English

在MacOS中使用mount_ftp命令

[英]Using mount_ftp command in MacOS

I want to include a ftp share into my normal filesystem by performing the following commands: 我想通过执行以下命令将ftp共享包括到我的普通文件系统中:

$ mkdir /Volumes/myfolder
$ mount_ftp ftp://user:password@ftp.domain.tld /Volumes/myfolder

I get no error message, but when I open the folder, the folder is just empty. 我没有收到任何错误消息,但是当我打开文件夹时,该文件夹只是空的。 I also tried to follow the instructions listed here , but I receive the error "The share does not exist on the server. Please check the share name, and then try again.". 我也尝试按照此处列出的说明进行操作,但是收到错误消息“服务器上不存在共享。请检查共享名,然后重试。”。 However, I can access to the share by typing ftp://user:password@ftp.domain.tld into my adress bar. 但是,我可以通过在地址栏中输入ftp:// user:password@ftp.domain.tld来访问共享。

Any ideas what I could do wrong? 有什么想法我可能做错了吗?

As you'll see in man mount_ftp , mount_ftp can set several return values. 就像在man mount_ftp看到的man mount_ftpmount_ftp可以设置几个返回值。 One way to get the return value is to say echo $? 获得返回值的一种方法是说echo $? right after the mount_ftp command. mount_ftp命令之后。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM