GoogleCloudPlatform / GoogleCloudPlatform/gsutil

CheckFreeSpace always returns free space on system drive on Windows

Open
#479 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
918
Forks
335
PR merge metrics
No merged PRs in 30d

Description

In util.py, `CheckFreeSpace(path)` ignores the parameter on Windows, and returns `get_disk_free_space_ex(os.getenv('SystemDrive'))`.

When using cp and compressing data to be uploaded, gsutil writes data to a temporary directory. If the system drive is low on space, changing the temp directory to a different drive has no effect on the free space check.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.