def _ensure(self, args): required_space = self._parse_amount(args) free_space = get_free_space(settings.FILE_STORE_PATH) if free_space < required_space: self._do_reclaim(required_space - free_space)
def _get_free_temp_space(): """ Return free space on the file system holding the temporary directory (in bytes) """ return get_free_space(getattr(settings, 'DOWNLOAD_TEMP_DIR', gettempdir()))
def _get_free_temp_space(): """ Return free space on the file system holding the temporary directory (in bytes) """ return get_free_space(gettempdir())