| Dart Home | PowerTCP FTP for .NET | Custom Development | Reply | PowerTCP FTP for .NET Topics | Forums |
| Author | Forum: PowerTCP FTP for .NET Topic: Embeded space in filename |
| TJ From: Columbus, OH USA Posts: 15 Member Since: 06/04/04 |
posted June 4, 2004 12:13 AM Hi, FTP server is IIS 5.0. I need to get file info such as size and date for only one file. So I tried to get those information by List method like ftp1.List(fileName,true)....However, it works only for filename do not contains space. If filename contains space(like "a b c.exe"), it generates error message. I know I can retrieve the info by replacing space with ?, however it also give unrelated name like "a+b c.exe". I do not want to get this one. Is there any way I can get file information for only one filename that contains space character? Thanks. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted June 4, 2004 12:20 AM Try including quotes in the string that you pass to List so that we send them to the server: Ftp1.List("""a b c.exe""", true) |
| TJ From: Columbus, OH USA Posts: 15 Member Since: 06/04/04 |
posted June 4, 2004 12:27 AM Hi. No, it didn't work. Here is what I did. BTW, I am using C# ftpClient.List("\"\"a b c.exe\"\"",true); It throws exception. Error message is .. LIST ""a b c.exe"" System.Byte[] 550 ""a: The filename , directory name, or volume label syntax is incorrect Thanks |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted June 4, 2004 10:05 AM I am not able to confirm this. Here is what I have tried: 1) I put a file called "a b c.exe" in the root of my IIS5 FTP server 2) I modified the FtpListView sample like so: changed this: ftp1.List("", true) to this: ftp1.List("a b c.exe", true) When I log in, I see the file in the listview. Please try this and if it does not work, let me know where there is an FTP server that I connect to to compare differences. |
| TJ From: Columbus, OH USA Posts: 15 Member Since: 06/04/04 |
posted June 4, 2004 2:48 PM Thanks. I captured two images. You can compare those. Here is the URL you can check out the captured images. http://www.cse.ohio-state.edu/~kitae/FTP/ As I said, FTP server is IIS5. FTP FOR .NET 2.2.5 that I am using. Thanks. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted June 4, 2004 3:44 PM In rereading this post, I notice that you sent: ftpClient.List("\"\"a b c.exe\"\"",true); This would actually be the correct C# translation of what I posted: ftpClient.List("\"a b c.exe\"",true); Please try that and tell me what happens. |
| TJ From: Columbus, OH USA Posts: 15 Member Since: 06/04/04 |
posted June 4, 2004 3:56 PM Hi, I think that quote cannot solve this problem!. Here is what I have tried for filename ftpClient.List("a b c.exe",true); ftpClient.List("\"a b c.exe\"",true); ftpClient.List("\"\"a b c.exe\"\"",true); Nothing works. Did you see my captured images? On that images, you'll notice that I used for "a b c.exe" as filename. It seems like to me that filename just be read until the first space before the filename. Thanks. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted June 4, 2004 4:03 PM Everything works fine for me here. If you want me to troubleshoot this, I'll need an account to login to to test it. If you don't want to supply that here, please send the info to support@dart.com |
| TJ From: Columbus, OH USA Posts: 15 Member Since: 06/04/04 |
posted June 4, 2004 4:19 PM Hi, Thanks. BTW, I am using 2.2.5.0 version of FTP for .NET. Do I need to update something for working filename that contains space? If I can try to install new updated version, could you provide me the url so that I can download...? Thanks again. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted June 4, 2004 4:28 PM I'm using the same one you are. You don't need an update. |
| TJ From: Columbus, OH USA Posts: 15 Member Since: 06/04/04 |
posted June 4, 2004 4:44 PM Hi, Tony. I just sent email that contains the ftp server information that you can test out. Please test it as soon as you receive it. I am going to remove the your account as soon as you finish testing Thanks. |
| TJ From: Columbus, OH USA Posts: 15 Member Since: 06/04/04 |
posted June 4, 2004 4:45 PM Oh, BTW. I sent to support@dart.com. Title was "ATTN : To Tony Priest" Thanks. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted June 4, 2004 4:55 PM How long can you leave the account up? This whole process may take awhile. First someone has to forward me the email, then I have to duplicate the problem and write up an incident. Eventually a developer will be assigned the issue, but I can't say for sure how long that will take. |
| TJ From: Columbus, OH USA Posts: 15 Member Since: 06/04/04 |
posted June 4, 2004 5:00 PM Hi, Well...first of all...the IP that I sent was assigned by DHCP. In other words, if I reconnect to the Internet tomorrow, the IP will be changed. I am not sure how long I am going to stay connecting with this lan cable today... Could you test out today? Thanks. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted June 4, 2004 5:08 PM The only way I can test it today is if you post the account info here. If you post it within the next 10 minutes I will make sure it gets deleted. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted June 4, 2004 8:27 PM OK, I tried it and it looks like your server does not support listing of files with spaces. I also tried using CuteFtp's filter feature to try to view "a b c.doc" and it didn't work either. You'll have to get the full listing and look for the entries for matching files. |
| Reply | PowerTCP FTP for .NET Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|