spantaleev / sftpman

Application that handles sshfs/sftp file systems mounting.
GNU General Public License v3.0
32 stars 7 forks source link

FTP support #8

Open semyon-san opened 6 years ago

semyon-san commented 6 years ago

What do you think of adding FTP support using curlftpfs? One could create a copy of sftpman (name it ftpman) and just substitute sshfs commands with curlftpfs but that's just silly.

One can solve it it two ways:

  1. Add protocol option to config file of sftpman to specify if you want to mount using ftp or sftp (easier way)
  2. Extract code base from sftpman that manages the mounted servers and name it "mounting engine". Then different implementations for different protocols (sftpman, ftpman) use the mounting engine but specifiy their unique commands to mount/unmount and parsing of their config files. (harder but better)
spantaleev commented 6 years ago

Sounds somewhat useful, but also like something which would introduce complexity on multiple levels:

This would affect: packaging, internal management code, CLI interface, and even the GTK interface (sftpman-gtk).

Additionally, #4 should probably be implemented, as mounting under /mnt/sshfs using FTP doesn't make sense. Well, that, or we'd need to stop using /mnt/sshfs in favor of something better, which fits both SFTP and FTP.