Latest recipes tagged "stat" Code RecipesAvailable disk space monitoring for concurrent writes (Python) 2010-03-25T01:10:14-07:00Mateyuzo <p style="color: grey"> Python recipe 577140 by <a href="/recipes/users/4172453/">Mateyuzo</a> (<a href="/recipes/tags/files/">files</a>, <a href="/recipes/tags/multiprocessing/">multiprocessing</a>, <a href="/recipes/tags/stat/">stat</a>, <a href="/recipes/tags/writing/">writing</a>). Revision 5. </p> <p>A DiskSpaceProctor is registered with a SyncManager to be shared by forked processes and threads. This object will check the available free space and add up filesz of concurrent writes. If there is not enough space for the requesting write, an exception is raised.</p>