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

Check if there is enough free space #46

Closed
diabloo opened this issue Mar 6, 2016 · 4 comments
Closed

Check if there is enough free space #46

diabloo opened this issue Mar 6, 2016 · 4 comments

Comments

@diabloo
Copy link

diabloo commented Mar 6, 2016

hi,
i'am using your library to download some file( 5-10 MB) and i want to check if there is enough free space before starting download is this possible or i sould check this in progress

and how to stop a download in case there is no space

@Jacksgong
Copy link
Collaborator

Year, you don't need to check, but you will receive error call-back on FileDownloadListener when there is no enough free space to write buffers, on the current version(0.2.0). and If you receive error call-back, the download was stopped. ( following statuses means download stopped: pausederrorcompleted、(blockComplete))

@Jacksgong Jacksgong self-assigned this Mar 6, 2016
@Jacksgong
Copy link
Collaborator

Thanks for your reminder, On the next version, I will throw error call-back directly when checking out the free space is less than content-length before start fetch datum for NON 'Chunked transfer encoding' one.

@yangwuan55
Copy link

it's useful.

@Jacksgong
Copy link
Collaborator

Enhanced in v0.2.1.

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

No branches or pull requests

3 participants