Skip to content

Temp dir for cloud storages #692

Answered by drakkan
sunilke asked this question in Q&A
Jan 24, 2022 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

Hi,

we want to support multipart downloads/uploads and so we have to provide a random access file like object to the aws sdk (other cloud providers have a similar requirement).

To provide a random access reader/writer we use an unliked file that is stored in the local home directory. An unliked file will be deleted when SFTPGo closes it or if the SFTPGo process terminates, so it is guaranteed that it will never remain on the disk once the transfer is completed.

An alternative approach is to use an in memory pipe like this but in this case you have to set the concurrency to 1 as you can see here and so you will have slower transfers.

I also evaluated to develop an in-memory file like objec…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@sunilke
Comment options

@drakkan
Comment options

@sunilke
Comment options

Answer selected by sunilke
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants