Click here to Skip to main content
15,886,608 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I need to transfer multiple files to a destination that does not have a lot of storage space. Zipping is out of the question so I need to transfer multiple files and folders as a single unit that does not require unzipping.

I'm wondering if I can stream a folder?

What I have tried:

I'm currently zipping multiple files into a single file and then transferring the zipped file. This is not working out because the destination does not have enough storage all the time to store both the zip and the unzipped contents.
Posted
Updated 2-Oct-18 3:18am
Comments
dan!sh 1-Oct-18 1:39am    
Is this to copy a directory from one computer to another on same network? Are you using http to stream it?
Member 14000828 1-Oct-18 1:42am    
currently i'm not streaming the file. I'm reading it into a fileStream then chunking it and send the chunks
dan!sh 1-Oct-18 1:58am    
Can you share details of your application landscape? How much control you have on destination location? Is this web application?
Member 14000828 1-Oct-18 2:26am    
Its all IP based. I do not have any control on the destination location.
Richard MacCutchan 1-Oct-18 3:40am    
How does the destination system accept the streamed data?

1 solution

Just iterate the source folder and copy one file at a time. It really is that simple. Of course, you have to make sure the target path exists first, but really, this is minor file system stuff.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900