[issue410547] os.statvfs support for Windows

2022-04-10 Thread admin
Change by admin : -- github: None -> 34217 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue410547] os.statvfs support for Windows

2011-01-09 Thread David-Sarah Hopwood
David-Sarah Hopwood added the comment: Don't use win32file.GetDiskFreeSpace; the underlying Windows API only supports drives up to 2 GB (http://blogs.msdn.com/b/oldnewthing/archive/2007/11/01/5807020.aspx). Use GetFreeDiskSpaceEx, as the code I linked to does. I'm not sure it makes sense to

[issue410547] os.statvfs support for Windows

2011-01-09 Thread Carsten Koch
Carsten Koch added the comment: Here is what I am doing now: ... if sys.platform == "win32": import win32file else: import statvfs ... def get_free_space(path = '.'): """ Determine the free space in bytes for the given path. """ if sys.platform == "win32": sizes = w

[issue410547] os.statvfs support for Windows

2011-01-06 Thread David-Sarah Hopwood
David-Sarah Hopwood added the comment: "Is there a portable way to get the available disk space by now?" No, but http://tahoe-lafs.org/trac/tahoe-lafs/browser/src/allmydata/util/fileutil.py?rev=4894#L308 might be helpful (uses pywin32). -- nosy: +davidsarah _