3DShell icon indicating copy to clipboard operation
3DShell copied to clipboard

prototype on how ftp could show more info

Open MarcoMartins86 opened this issue 6 years ago • 9 comments

Hi Joel,

Please don't accept this pull request, it just to show you what I think it could be an improvement on the ftp menu with a ftp server library I've made based on the ftpd code (it will still have problems like when no network is present, I didn't protect it for now).

Not sure if I should continue investing time on this if you don't like it. Tell me your opinion when you get some time.

Also, for now test it while downloading/uploading a file at a time, although ftp will work, I just made code to display the transfer info of one file.

Thanks, Marco Martins

MarcoMartins86 avatar Feb 26 '19 00:02 MarcoMartins86

Hey! thanks for the PR. Could you perhaps send a build over for me to test. I can take a look then and let you know.

joel16 avatar Feb 26 '19 01:02 joel16

Sure, I have uploaded it here

MarcoMartins86 avatar Feb 26 '19 09:02 MarcoMartins86

Well for some reason it doesn't show up my sd contents from WinSCP.

joel16 avatar Mar 03 '19 17:03 joel16

Thank you, I will check on that...I was using FileZilla, it should work for you also if you want to try in the meanwhile.

MarcoMartins86 avatar Mar 04 '19 14:03 MarcoMartins86

This version should work with WinSCP.

MarcoMartins86 avatar Mar 10 '19 13:03 MarcoMartins86

That build works. I like how it shows the bytes (MB) remaining, but it seems to blinking instead of showing it constantly. If you can fix that, then I wouldn't mind making this change.

joel16 avatar Mar 10 '19 17:03 joel16

Thank you for your feedback, the reason for the blinking is because during some GUI cycles there were no data sent/received but I already thought in a way to fix that. Also, when sending files from 3DS we know the file size but when receiving we only know the MB that we currently have due to FTP protocol not negotiating the file size beforehand. Moreover, GUI should be more responsive since all FTP operations are being done in another thread.

Since you have given green light I will improve what's done and I will let you know afterward. I will also make the source code available on my Github page at that point.

MarcoMartins86 avatar Mar 11 '19 10:03 MarcoMartins86

Any updates? Id really like this feature.

xy172 avatar May 31 '20 10:05 xy172

Sorry for the delay but I had a catastrophic hard drive failure on my dev machine, luckily I had already most of the code committed to GitHub. I think I fixed most of the issues with this version. I still need to implement the list of connected clients. When sending we can show the percentage since we know both the file size and the current position. When receiving we can only show the amount of data received since we don't know the original file size. Right now due to how things are exposed on screen only two simultaneous transfers are shown.

MarcoMartins86 avatar Jun 14 '20 21:06 MarcoMartins86