-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add v2 torrent creation script #3
Conversation
For the hybrid format in multi-file mode it would make sense to add another padding file at the end so. This allows torrents to be assembled from smaller torrents without rehashing. It's mostly relevant for torrent feeds. |
|
Directory listings in filesystems are not guaranteed to be sorted (it's
This results in the v1 list to be in encounter order while the file tree is sorted per bencoding. Which leads to an invalid hybrid torrent.
Also, the last v1 file still does not seem to be padded to a full piece size. |
In that case the last file is empty. Why would padding be needed for an empty file? |
The one before it is not empty and yet not padded. |
The default piece size is 64KB, so assuming you didn't change it that file doesn't need to be padded. |
Oh duh. Off by one. I intended to make it 1 longer than the piece size. |
Although the |
another small issue
|
This fixes the name being empty if path has a trailing slash
No description provided.