开发者

How to list a directory that has whitespaces in its name via FTP?

开发者 https://www.devze.com 2023-03-31 06:41 出处:网络
Well I tried to send the url encoded but when I start the stream I get 550 error (permission denied, which means that the folder doesn\'t exist in my case -> probably it compares with the non encoded

Well I tried to send the url encoded but when I start the stream I get 550 error (permission denied, which means that the folder doesn't exist in my case -> probably it compares with the non encoded name on the server). I tried to send it unencoded...and it failed even quicker, the stream didn't opened at all (naturally). I take it that it's impossible to list a directory that has whitespaces?

I'm using a Linux server, but ideally, I would like it to work with m开发者_StackOverflowultiple servers.

[UPDATE] I've just tried the apple sample SimpleFTP code and it seems that it has the same problem. It creates folders with spaces, but when you try to list them it fails


I don't know too much about NSStream, I am using FTPHelper by Erica Sadun for ftp'ing, but I presume that the URL either needs to be escaped.

Try %20 or \ where the spaces are meant to be. There is meant to be a space after the \ by the way!

0

精彩评论

暂无评论...
验证码 换一张
取 消