Add additional folders to a user *OR* sub-folders synced back to SFTP.

Issue #20 resolved
Chris Christopher created an issue

We are looking to use SFTPGateway for an automated file processing system. Is it possible to to do any or all of the following:

  1. Remove the "Local" from user visibility.
  2. Remove or rename the downloads folder as seen by the user in the ftp client.
  3. Add one or more additional private download folders for a user.
  4. Have files in sub-folders of downloads sync back to SFTP.

Ideally we would like to have only 3 folders visible to our end users : Upload Processed Failed

Barring that we would like to have 2 sub folders in downloads (processed, failed) that synced their contents from S3.

Comments (4)

  1. Chris Christopher reporter

    Sorry, I don't think I was waiting long enough for S3 to sync back to SFTP. Having the sub-folders in downloads works as I would expect it to. Would still like to have separate distinct folders if possible.

    Thanks Chris

  2. Chris Gick Account Deactivated
    1. If you do not need the download directory you can just remove it with rm -rf /home/<username>/home/<username>/local. There is no way to hide just the local directory from the user.
    2. You can globally rename the downloads directory for every user by changing the the sftpgateway.downloaddir attribute in the /home/ec2-user/.sftpgateway/sftpgateway.properties file. Once you have changed this property it will apply to all new users you add with sudo addsftpuser. You can apply this change to previously create users by rerunning sudo addsftpuser on those users. This will not remove the previously created downloads directory for those users, so you will have to go in and remove those outdated downloads directories manually.
    3. Unfotunaly with the way SFTP Gateway currently retrieves the downloads directory from S3 there is no way to create multiple download directories. However you could create multiple subdirectories in the downloads directory of S3 and they will be synced down to SFTP Gateway every 5 minutes.
  3. Chris Christopher reporter

    Thanks I think this will work for our needs. Look forward to seeing how the Pro version turns out. -Chris

  4. Chris Gick Account Deactivated

    I am glad to hear that our product will work for your needs. If you have any questions or need assistance you can email us at support@thorntech.com.

  5. Log in to comment