Client feature request: Create zero size files instead of transmitting them

Moderator: Project members

Post Reply
Message
Author
Mario H.
500 Command not understood
Posts: 2
Joined: 2016-12-15 08:32
First name: Mario
Last name: H.

Client feature request: Create zero size files instead of transmitting them

#1 Post by Mario H. » 2016-12-15 08:44

Before posting this, I searched for zero size and found this post from Tim Kosse (from 2006) where he informed on improvements in adding a large number of files of zero size to the queue.

How about improving the transmission of such files as well?

You see, a file of 0 Byte has no content, so it doesn't need to be transferred. By adding it to the queue, you already know its name and path, and its date and time. So instead of opening a connection to transfer it, you could just create or update the file.

I don't know whether that is easy for uploads. But at least for downloads this should be much faster.

Kind regards,

Mario

User avatar
botg
Site Admin
Posts: 33432
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse
Contact:

Re: Client feature request: Create zero size files instead of transmitting them

#2 Post by botg » 2016-12-15 10:10

For uploads, the only way to actually create an empty file is to start a regular transfer, just with 0 bytes of data transferred.

The downloads, the filesize reported by the server is unreliable. It may be missing, outdated or plain wrong information. The only way to be sure it's an empty file is to actually transfer it, it no data is transferred then it truly is an empty file.

Mario H.
500 Command not understood
Posts: 2
Joined: 2016-12-15 08:32
First name: Mario
Last name: H.

Re: Client feature request: Create zero size files instead of transmitting them

#3 Post by Mario H. » 2016-12-15 10:13

What a pity, but thank you for your quick reply and explanation!

Post Reply