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 free space before downloading a file #858

Merged
merged 1 commit into from Mar 19, 2013

Conversation

mdboom
Copy link
Contributor

@mdboom mdboom commented Mar 8, 2013

This checks for free space on the tmp and cache filesystems before downloading a file.

It also refactors the code in console.py that displays a filesize in a human-friendly way so it can be reused in the error message for this feature.

… that the temp filesystem and, if necessary, the cache filesystem have enough space before beginning the download.
@astrofrog
Copy link
Member

👍

mdboom added a commit that referenced this pull request Mar 19, 2013
…load

Check free space before downloading a file
@mdboom mdboom merged commit dbe383c into astropy:master Mar 19, 2013
embray pushed a commit to embray/astropy that referenced this pull request Mar 29, 2013
…re-download

Check free space before downloading a file
Conflicts:

	astropy/utils/console.py
@mdboom mdboom deleted the utils/check-file-size-before-download branch May 21, 2014 23:58
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

Successfully merging this pull request may close these issues.

None yet

2 participants