Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: https://forum.uvnc.com/viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

Filetransfer: Why zip directories/folders?

Post Reply
OfficialGuest
Guest Account
Posts: 53
Joined: 2004-08-22 09:38

Filetransfer: Why zip directories/folders?

Post by OfficialGuest »

Why does filetransfer zip directories? It would be more efficient if a directory was transferred file by file. If I had ten 100MB files to transfer, it would take a long time to zip it, not to mention the space it takes up. Also, is any compression applied when zipping directories? And why did the developers choose zip instead of other formats like tar or 7z?
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6863
Joined: 2004-04-23 10:21
Contact:

Re: Filetransfer: Why zip directories/folders?

Post by Rudi De Vos »

Zip handle files and subdircetories, and when extracted structure is back created.
Without zip you need to code all the stuff yourself.

+Creating directory structure
+Travers all dirs and subdirect and copy file per file
+Add path to each file, so it's copied back at the right spot in the tree
+Add time and other permissions for each file and directory

You need to recreate almost 50% of the zip code for being able to proper copy structures from one system to the other. Zip is well tested and working. We also could have used bzip2 or 7z, better compression, but take about 2..10 x more time and cpu.
OfficialGuest
Guest Account
Posts: 53
Joined: 2004-08-22 09:38

Re: Filetransfer: Why zip directories/folders?

Post by OfficialGuest »

Fair enough. Quick question: is there any compression applied when zipped (deflate) or is no compression applied (store)?
syntaxer
Posts: 2
Joined: 2006-08-11 21:40

Re: Filetransfer: Why zip directories/folders?

Post by syntaxer »

are there any thoughts to implement a none compression mode for transfering directories ?
redge
1000
1000
Posts: 6797
Joined: 2004-07-03 17:05
Location: Switzerland - Geneva

Re: Filetransfer: Why zip directories/folders?

Post by redge »

UltraSam wrote: No somewhere in the forum
UltraVNC 1.0.9.6.1 (built 20110518)
OS Win: xp home + vista business + 7 home
only experienced user, not developer
Post Reply