Use cases for Folders
Folders in SFTP Gateway are logical mappings. They map an SFTP subdirectory to a Cloud Connection.
In other words, Folders let you map SFTP folders to different cloud locations.
Use case 1: multiple Storage Accounts
For example, an SFTP user can have two subfolders under their chroot directory:
/ |--folderA/ <-- maps to Storage Account A |--folderB/ <-- maps to Storage Account B
Each Folder maps to its own Blob path in a different Storage Account.
Use case 2: group folder
You can use Folders for file sharing.
/ |--userA/ <-- maps to a location dedicated to UserA |--group/ <-- maps to a shared location
A second user can be configured in the same way:
/ |--userB/ <-- maps to a location dedicated to UserB |--group/ <-- maps to a shared location
userB have their own folder.
They also have a
group folder mapped for sharing files.
Use case 3: multi-cloud transfer
You can use SFTP Gateway to transfer files between cloud providers:
/ |--aws-folder/ <-- maps to an S3 bucket |--azure-folder/ <-- maps to an Azure Blob Storage Account
This configuration lets you drag and drop files between AWS and Azure.
Folders are logical mappings that map an SFTP folder to a cloud location.
Deleting a Folder only deletes the mapping -- it does not delete the underlying objects in Blob storage.
Also, the folder will not appear in Blob storage until you have logged in as the SFTP user and uploaded a file. This is because Blob storage prunes empty file paths.