Page 1 of 6

FTP client

Posted: Wed Jul 10, 2013 12:49 pm
by hidnplayr
Hooray, the FTP client is here!

No fancy GUI but a simple CLI interface is provided.

Image

Image

Known limitations:
-Only passive data connection for now
-When retrieving data from server, first byte may be lost, this must be problem in kernel.
-...

Good to know:
-type help for help
-Files are read/written to the applications user directory (/RD/1/ by default, change with lcwd command)

Feature request and bug reports are accepted here.
The program has been included in the nightbuild since #3801

Re: FTP client

Posted: Wed Jul 10, 2013 6:29 pm
by ramiil-kun
Very good. Have you used the FTP libs?

Re: FTP client

Posted: Wed Jul 10, 2013 6:33 pm
by hidnplayr
ramiil-kun wrote:Very good. Have you used the FTP libs?
The what?
This client has been written from scratch in pure flat assembly.

Re: FTP client

Posted: Thu Jul 11, 2013 12:03 pm
by ramiil-kun
Okay. It's all what i want to know.

Re: FTP client

Posted: Thu Jul 11, 2013 7:03 pm
by Wildwest
Great work. It is common practice in file managers to give graphical interface for work with ftp as with remote disk/folder. Probably KFAR (or other file manager) plug-in could be next step.

Re: FTP client

Posted: Thu Jul 11, 2013 7:32 pm
by Asper
Really great! Standard library could be used by any program not only by a FM.

Re: FTP client

Posted: Thu Jul 11, 2013 8:06 pm
by SoUrcerer
Or even FTP directory can be mounted to file system ;)

Re: FTP client

Posted: Thu Jul 11, 2013 10:46 pm
by hidnplayr
Asper wrote:Really great! Standard library could be used by any program not only by a FM.
A library is not so hard to make, but who will use it?

Re: FTP client

Posted: Thu Jul 11, 2013 11:01 pm
by ramiil-kun
Hmm, library will be a first step to "FTP-FS", for example. We have ftp-server and ftp-client in kolibri, and network stack work on different computers. It will be good feature, if you understand me.

There are lot of mistakes, sorry.

Re: FTP client

Posted: Sun Mar 23, 2014 9:39 pm
by yogev_ezra
http://bugs.kolibrios.org/view.php?id=80
KolibriOS FTP client (ftpc) doesn't request username/password on some servers
Connect to ftp.kolibrios.org - username/password is requested as expected.
Connect to ftp.idit.co.il - no prompt for username/password.
Connect to ftp.idit.co.il using Windows command-line FTP client - works ok (username/password is requested as expected).
As a result, I am unable to work with ftp.idit.co.il in KolibriOS
SVN #4665
Spoiler:
ScreenShot821.png
ScreenShot821.png (24.49 KiB)
Viewed 17720 times
ftp.idit.co.il.png
ftp.idit.co.il.png (11.68 KiB)
Viewed 17720 times
ftp.kolibrios.org.png
ftp.kolibrios.org.png (15.64 KiB)
Viewed 17720 times

Re: FTP client

Posted: Mon May 12, 2014 10:31 am
by hidnplayr
Forgot to answer here, but bug described by yogev has been fixed.

Re: FTP client

Posted: Mon May 12, 2014 12:09 pm
by ashmew2
Added a RDIR command to FTP client with #4922 ,

RDIR : Retreieve directory

It currently retreives all the files from the server's current working directory and ignores any subdirectories inside.

Plans are to eventually make this recursive with a --recursive flag.

Please use and report any issues you face :)

Re: FTP client

Posted: Tue Apr 12, 2016 10:33 pm
by nisargshah95
I added the functionality to parse command line arguments of the form ftp://user:password@server.com:port/folder/subfolder (#6394). For eg.,

Code: Select all

ftpc ftp://anonymous:pass@ftp.kolibrios.org:21/users

Re: FTP client

Posted: Wed May 04, 2016 11:30 pm
by nisargshah95
I am working on creating a GUI for the existing FTP client as part of my GSoC project. The main goals of the project are -

1. support for existing commands in the FTP client
2. search remote directory
3. enable logging control data to log file
4. display upload/download progress bar
5. support resuming downloads (http://bugs.kolibrios.org/view.php?id=96)
6. support to abort transfers.

Here is a mock image of how the GUI would look like -
Image

I showed this earlier to my mentor ashmew2 and the following changes will be made -
1. have separate window for username and password inputs which will be replaced by the client window on successful login.
2. grey out buttons like delete, upload if the user does not have required permissions.
3. add proper error handling

Any suggestions are welcome so that they can be incorporated into the client :)

Re: FTP client

Posted: Thu May 05, 2016 2:05 pm
by Pathoswithin
I think, the main question is what resources will be used for GUI elements? It certainly should not be "all in myself" as Tinypad.