Skip to content
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

[feature]: support byte offset when retrieving a file #67

Open
mattgathu opened this issue Oct 26, 2017 · 0 comments
Open

[feature]: support byte offset when retrieving a file #67

mattgathu opened this issue Oct 26, 2017 · 0 comments

Comments

@mattgathu
Copy link

It would nice to be able to resume partial downloads by specifying the bytes offset from which to read from.

Python's ftplib supports this and can be a good reference source:

FTP.retrbinary(cmd, callback, blocksize=8192, rest=None)

Retrieve a file in binary transfer mode. [...]
rest means the same thing as in the transfercmd() method.

FTP.transfercmd(cmd, rest=None)
[...]
If optional rest is given, a REST command is sent to the server, passing rest as an argument. rest is usually a byte offset into the requested file, telling the server to restart sending the file’s bytes at the requested offset, skipping over the initial bytes. .....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant