bugpyFormex - Bugs: bug #41764, get free space on a drive

 
 

bug #41764: get free space on a drive

Submitted by:  gianluca de santis <gianlucadesi>
Submitted on:  Mon 03 Mar 2014 09:40:48 AM UTC  
 
Category: CoreSeverity: 3 - Normal
Item Group: Feature requestStatus: Fixed
Privacy: PublicAssigned to: Benedict Verhegghe <bverheg>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 03 Mar 2014 04:21:04 PM UTC, comment #1:

Commit adf95d0 adds utils.diskSpace and utils.humanSize.
utils.diskSpace avoids an external command.

Benedict Verhegghe <bverheg>
Project AdministratorIn charge of this item.
Mon 03 Mar 2014 09:40:48 AM UTC, original submission:

I would need a function to get the free space on the current drive (to check at the start of a script whether the available drive space is larger than the extimated required space).

In attachment there is a simple implementation which could be maybe located in utils.py
Thanks

gianluca de santis <gianlucadesi>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #30756:  space.py added by gianlucadesi (2KiB - text/x-python)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bverheg (Posted a comment)
  • -unavailable- added by gianlucadesi (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 03 Mar 2014 04:21:04 PM UTCbverhegCategoryNone=>Core
      StatusNone=>Fixed
      Assigned toNone=>bverheg
      Open/ClosedOpen=>Closed
    Mon 03 Mar 2014 09:40:48 AM UTCgianlucadesiAttached File-=>Added space.py, #30756

    Back to the top


    Powered by Savane 3.1-cleanup1