EldoS | Feel safer!

Software components for data protection, secure storage and transfer

TElSimpleFTPSServer & mget *.* Issue

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
#22534
Posted: 11/19/2012 14:59:28
by Ashley Theobald (Standard support level)
Joined: 11/19/2012
Posts: 9

Hi All,

I'm new and have been working on creating an FTP Server using TElSimpleFTPSServer but have hit a brick wall with trying to find how to get around when the mget *.* command is sent.

Has anyone else managed to get around this issue, I would really appreciate some guidance on what I need to do.

Many Thanks,
Ashley Theobald
#22535
Posted: 11/19/2012 15:28:09
by Mykola Olshevsky (Basic support level)
Joined: 07/07/2005
Posts: 450

Hi. What problem do you receive with mget *.*?
#22536
Posted: 11/19/2012 15:38:23
by Ashley Theobald (Standard support level)
Joined: 11/19/2012
Posts: 9

I basically receive "Cannot find list of remote files." and by the looks of it it's because when the DiskFileSystemAdapter is called it's first looking for a file called *.* when I actually want it to download any file.

I got around the FileExists Override by removing the *.* and returning whether the folder exists but I cannot find a work around for GetEntryInformation. Forcing this to pickup the files in the directory and updating the RealPath doesn't appear to work, it prompts whether I want to download and after selecting "Y" in the command prompt it just creates a blank file and doesn't go any further.

I tried this in the Demo Project (FTPSBlackbox) but it exhibits the same behaviour.

Thanks for such a quick response.
#22537
Posted: 11/19/2012 16:08:56
by Ashley Theobald (Standard support level)
Joined: 11/19/2012
Posts: 9

I think my issue is that I am supposed to return a list of files to the client when they send the NLST Command but I don't think this command is supported?
#22538
Posted: 11/19/2012 16:53:46
by Mykola Olshevsky (Basic support level)
Joined: 07/07/2005
Posts: 450

NLST command lists files in the directory (and directory is passed as parameter), so *.* is not usable here.
And, our server supports this command.
Did you try our SimpleFTPSServer sample?
#22539
Posted: 11/20/2012 01:09:22
by Ashley Theobald (Standard support level)
Joined: 11/19/2012
Posts: 9

I have tested the Sample under the folder "FTPSBlackbox" as this appears to be the only project that has a Server sample but mget *.* reports the same error "Cannot find list of remote files.".

I have also tested get and mget and specifying the exact file name and the file is created but the contents are not populated. I received "125 Data connection already open; transfer starting." followed promptly by "226 Closing data connection." so it's like the get function just isn't working.

Is there a sample that you could send me that perhaps I do not have?

Many Thanks,
Ashley
#22540
Posted: 11/20/2012 01:21:45
by Ashley Theobald (Standard support level)
Joined: 11/19/2012
Posts: 9

I have managed to get mget and get to download the file plus contents so ignore this. I just cannot get the mget *.* to work. Reporting same issue "Cannot find list of remove files."

I really appreciate your help on this.
#22541
Posted: 11/20/2012 04:33:08
by Mykola Olshevsky (Basic support level)
Joined: 07/07/2005
Posts: 450

Checked it.
Actually SimpleFTPSServer doesn't support list commands with wildcards (i.e. *.*). We will consider implementing wildcard support.

However, in your case you can issue mget . (i.e use dot instead of *.*), this will get every file in the current directory.
#22542
Posted: 11/20/2012 06:33:04
by Ashley Theobald (Standard support level)
Joined: 11/19/2012
Posts: 9

Fantastic, that appears to have done the trick.

I do however as a result of using this have one last issue, if I used "mget ." it appears to try download the Folders as well as files.

Is it possible to be able to expand this so it can look at file extensions (i.e. .txt) for instance?

Many Thanks,
Ashley
#22543
Posted: 11/20/2012 06:58:18
by Mykola Olshevsky (Basic support level)
Joined: 07/07/2005
Posts: 450

No, it will not work with file masks.
Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.

Reply

Statistics

Topic viewed 2619 times

Number of guests: 2, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!