[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:

[issue410547] os.statvfs support for Windows

2011-01-09 Thread Carsten Koch
Carsten Koch carstenk...@users.sourceforge.net 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

[issue410547] os.statvfs support for Windows

2011-01-09 Thread David-Sarah Hopwood
David-Sarah Hopwood david-sa...@jacaranda.org 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

[issue410547] os.statvfs support for Windows

2011-01-06 Thread David-Sarah Hopwood
David-Sarah Hopwood david-sa...@jacaranda.org 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