x0b / rcx

Rclone for Android
https://x0b.github.io
GNU General Public License v3.0
1.72k stars 155 forks source link

Adding more options for a FTP connection #205

Open masscream opened 2 years ago

masscream commented 2 years ago

Firstly, thank you for this project which looks very promising.

Pre-Submission checklist

What version of RCX are you using (About -> App version)?

1.12.2

What problem are you trying to solve?

It would be great to have more options specifying the FTP connection. (Active/Passive mode, FTPS, Default Remote dir, Encoding, ...) Currently I have installed vsftpd server and for simplicity I keep only Active mode on (I do not intend to use it outside my home LAN anyway, therefore I prefer only plain FTP, not to waste sources on encryption, etc...), however RCX is trying to go Passive at all costs. Almost all other flexible clients were able to connect (PC: FileZilla, Android: AndFTP, Ghost Commander)), RCX not ftplog:

Thu Feb 17 20:31:14 2022 [pid 3457189] CONNECT: Client "::ffff:192.168.1.24" Thu Feb 17 20:31:14 2022 [pid 3457189] FTP command: Client "::ffff:192.168.1.24", "USER masscream" Thu Feb 17 20:31:14 2022 [pid 3457189] [masscream] FTP response: Client "::ffff:192.168.1.24", "331 Please specify the password." Thu Feb 17 20:31:14 2022 [pid 3457189] [masscream] FTP command: Client "::ffff:192.168.1.24", "PASS " Thu Feb 17 20:31:14 2022 [pid 3457188] [masscream] OK LOGIN: Client "::ffff:192.168.1.24" Thu Feb 17 20:31:14 2022 [pid 3457190] [masscream] FTP response: Client "::ffff:192.168.1.24", "230 Login successful." Thu Feb 17 20:31:14 2022 [pid 3457190] [masscream] FTP command: Client "::ffff:192.168.1.24", "FEAT" Thu Feb 17 20:31:14 2022 [pid 3457190] [masscream] FTP response: Client "::ffff:192.168.1.24", "211-Features:" Thu Feb 17 20:31:14 2022 [pid 3457190] [masscream] FTP response: Client "::ffff:192.168.1.24", " EPRT\x0D\x0A" Thu Feb 17 20:31:14 2022 [pid 3457190] [masscream] FTP response: Client "::ffff:192.168.1.24", " MDTM\x0D\x0A" Thu Feb 17 20:31:14 2022 [pid 3457190] [masscream] FTP response: Client "::ffff:192.168.1.24", " REST STREAM\x0D\x0A" Thu Feb 17 20:31:14 2022 [pid 3457190] [masscream] FTP response: Client "::ffff:192.168.1.24", " SIZE\x0D\x0A" Thu Feb 17 20:31:14 2022 [pid 3457190] [masscream] FTP response: Client "::ffff:192.168.1.24", " TVFS\x0D\x0A" Thu Feb 17 20:31:14 2022 [pid 3457190] [masscream] FTP response: Client "::ffff:192.168.1.24", " UTF8\x0D\x0A" Thu Feb 17 20:31:14 2022 [pid 3457190] [masscream] FTP response: Client "::ffff:192.168.1.24", "211 End" Thu Feb 17 20:31:14 2022 [pid 3457190] [masscream] FTP command: Client "::ffff:192.168.1.24", "TYPE I" Thu Feb 17 20:31:14 2022 [pid 3457190] [masscream] FTP response: Client "::ffff:192.168.1.24", "200 Switching to Binary mode." Thu Feb 17 20:31:14 2022 [pid 3457190] [masscream] FTP command: Client "::ffff:192.168.1.24", "OPTS UTF8 ON" Thu Feb 17 20:31:14 2022 [pid 3457190] [masscream] FTP response: Client "::ffff:192.168.1.24", "200 Always in UTF8 mode." Thu Feb 17 20:31:14 2022 [pid 3457190] [masscream] FTP command: Client "::ffff:192.168.1.24", "EPSV" Thu Feb 17 20:31:14 2022 [pid 3457190] [masscream] FTP response: Client "::ffff:192.168.1.24", "550 Permission denied." Thu Feb 17 20:31:14 2022 [pid 3457190] [masscream] FTP command: Client "::ffff:192.168.1.24", "PASV" Thu Feb 17 20:31:14 2022 [pid 3457190] [masscream] FTP response: Client "::ffff:192.168.1.24", "550 Permission denied."

RCX authenticates successfully but there are no files present.

What should RCX be able to do differently to help with this problem?

Have more options in creating FTP connection profile. Btw, having the possibility to edit existing Remotes (not deleting and re-creating them, in case of a need to change something) would be also great. But that's not the key issue. Thank you