Login  
Search All Forums
Dart Home | PowerTCP FTP for .NET | Custom Development Reply | PowerTCP FTP for .NET Topics | Forums   
AuthorForum: PowerTCP FTP for .NET
Topic: Directory not being created
drb0b

From: na, NE Netherlands
Posts: 9
Member Since: 05/05/04
posted May 5, 2004 3:32 AM

hi..iam testing the secure ftp componant against the latest version of raidenftpd and my directory structure is not being automatically created.

The trace message give me the following:

230 User anonymous logged in.
TYPE I
200 Type set to IMAGE.
PASV
227 Entering Passive Mode (192,168,0,100,5,122)
STOR /ABC/ABS01/1/0605/1234.txt
426 Connection closed; file opening failed (The system cannot find the path specified.)

my put statement contains the following:

string src = @"c:\test\1234.txt";
string dest= "/ABC/ABS01/1/0605/1234.txt";
Dart.PowerTCP.SecureFtp.FtpFile file;
file = ftp.Put (src,dest);

Any help would be greatly appreciated.

Thanks

Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted May 5, 2004 8:40 AM

What happens if you use the Listview sample to login and manually change to the directory "/ABC/ABS01/1/0605?"

drb0b

From: na, NE Netherlands
Posts: 9
Member Since: 05/05/04
posted May 5, 2004 4:03 PM

If i create the folders on the ftp beforehand, then the file gets placed without any issues. Iam under the impression that the control would automatically create the folder if it wasnt present.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted May 5, 2004 4:14 PM

It does. What happens if you leave off the first "/"? That works for me.

drb0b

From: na, NE Netherlands
Posts: 9
Member Since: 05/05/04
posted May 5, 2004 5:36 PM

thanks for the prompt reply. I tried leaving the first "/" out but that didnt seem to make any difference. Would NTFS permissions have any effect on the functionality. What server did you try it on when it worked. Ill probably try that server just to make sure its not my code.

Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted May 5, 2004 6:53 PM

Using the ListView sample, can you create a new directory? If so then there is no problem with permissions.

I used a Linux FTP server.
drb0b

From: na, NE Netherlands
Posts: 9
Member Since: 05/05/04
posted May 5, 2004 6:57 PM

k..i used the listview sample and can create the directories. Is there any lower level debugging i can do for the control to see why it cannot create the directories automatically.

Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted May 5, 2004 7:06 PM

You can use the Trace event to view all the commands that are sent and recieved. The listview sample shows how.
drb0b

From: na, NE Netherlands
Posts: 9
Member Since: 05/05/04
posted May 5, 2004 7:41 PM

Thanks..i installed a demo version of cuteftp server and my code works perfectly. With RaidenFTPD, it does not which seems to indicate that the command is not being supported properly. Has the secure ftp componant been tested with the latest build of RaidenFTPD?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted May 5, 2004 7:50 PM

Not that I know of. Just to be clear, "When you say "the command is not being supported properly", you mean it's not being supported by Raiden right?

All we do is send a mkd which should work everywhere.

Try using the Trace event to see what's going wrong, or if you want to give me the address of a running Raiden server, send it to support@dart.com along with a user/pass

drb0b

From: na, NE Netherlands
Posts: 9
Member Since: 05/05/04
posted May 5, 2004 7:55 PM

Thanks..i have logged a case with the RaidenFTPD to see if theres something not right on their end. In the meantime, ill set up a RaidenFTP server and contact support with the login/pass.
drb0b

From: na, NE Netherlands
Posts: 9
Member Since: 05/05/04
posted May 5, 2004 10:27 PM

hi Tony..i was wondering if you could describe the process that goes behind the scene when we use the Put method. Does a MKD command gets sent for every 'Put' call we make?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted May 6, 2004 9:39 AM

It would probably be best if I showed you what we do via a trace of a session storing the file in your example on a server where it works. Here is a trace where none of the directories exist. Note that we first try to STOR the file and get an error. Next we try to create the lowest level directory. If that fails we keep going up until we have success, then we work our way back down:

---> STOR ABC/ABS01/1/0605/1234.txt

<--- 553 Could not create file.

---> MKD ABC/ABS01/1/0605

<--- 550 Create directory operation failed.

---> MKD ABC/ABS01/1

<--- 550 Create directory operation failed.

---> MKD ABC/ABS01

<--- 550 Create directory operation failed.

---> MKD ABC

<--- 257 "/home/priest/ABC" created

---> MKD ABC/ABS01

<--- 257 "/home/priest/ABC/ABS01" created

---> MKD ABC/ABS01/1

<--- 257 "/home/priest/ABC/ABS01/1" created

---> MKD ABC/ABS01/1/0605

<--- 257 "/home/priest/ABC/ABS01/1/0605" created

---> STOR ABC/ABS01/1/0605/1234.txt

<--- 150 Ok to send data.

<--- 226 File receive OK.

Now here is a trace where the directory exists. Note that we don't send mkdir:

---> STOR ABC/ABS01/1/0605/1234.txt

<--- 150 Ok to send data.

<--- 226 File receive OK.

Reply | PowerTCP FTP for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX