| Dart Home | PowerTCP FTP for .NET | Custom Development | Reply | PowerTCP FTP for .NET Topics | Forums |
| Author | Forum: PowerTCP FTP for .NET Topic: Listing.Format is UNIX but Name and Path of ListEntry is Empty |
| apircher@luxbox.net From: Dornbirn, Austria Posts: 3 Member Since: 11/05/03 |
posted November 5, 2003 11:31 AM I have a problem processing a Listing. It worked fine against my Win2K Server but doesn´t in the production environment. ListEntry.Text contains the following: "-rw-r--r-- 1 ccdemo 1 Nov 3 15:49 download/0000001623.oca.xml" but ListEntry.Name and ListEntry.Path is empty. Wasn´t the Component able to parse the List? And if that is the Problem - why is Listing.Format set to UNIX and not to Unknown? Do I have to check if Text is available and Path/Name is not or Listing.Format is Unknown to decide if I should parse myself? if (list.Format != ListingFormat.Unknown) { foreach(ListEntry entry in list) { if (entry.Name == string.empty && entry.Text != string.empty) // parse myself else // use entry.Name } } else // parse myself or am I doing something wrong? |
| apircher@luxbox.net From: Dornbirn, Austria Posts: 3 Member Since: 11/05/03 |
posted November 5, 2003 11:34 AM For now I solved it by returning a "Named List". That worked fine and I can use entry.Name. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted November 5, 2003 12:02 PM The problem is that the listing appears to be of the UNIX type but the path is part of the file name. When we do a recursive list we expect a line telling us the directory name followed by lines for each file in the directory. The server looks like it's using it's own style ( one that I have never seen ) If you want us to look into further, please supply the address of a server that gives listings like that. |
| apircher@luxbox.net From: Dornbirn, Austria Posts: 3 Member Since: 11/05/03 |
posted November 5, 2003 12:36 PM My customer did not allow me to give that information away but maybe the following line could help you: 220 CC-FTP FTP server (Version wu-2.6.2(3) Tue Nov 26 12:33:05 NFT 2002) ready. I was not able to find anything about this CC-Ftp Ftp server anywhere. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted November 5, 2003 1:17 PM Thanks. |
| Reply | PowerTCP FTP for .NET Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|