Example #1
0
 def export_getTotalDiskSpace(self):
     """ Get the total disk space of the storage element
     If no size is specified, terabytes will be used by default.
 """
     return getDiskSpace(self.getCSOption("BasePath",
                                          "/opt/dirac/storage/sandboxes"),
                         total=True)
Example #2
0
def test_getDiskSpace():
    res = getDiskSpace("/")
    assert res["OK"]

    res = getTotalDiskSpace()
    assert res["OK"]

    res = getFreeDiskSpace()
    assert res["OK"]
Example #3
0
 def export_getTotalDiskSpace(self, path, size='TB'):
     """ Get the total disk space of the storage element
     If no size is specified, terabytes will be used by default.
 """
     return getDiskSpace(path, size, total=True)
Example #4
0
 def export_getFreeDiskSpace(self, path, size='TB'):
     """ Get the free disk space of the storage element
     If no size is specified, terabytes will be used by default.
 """
     return getDiskSpace(path, size)
Example #5
0
 def export_getTotalDiskSpace( self, path, size = 'TB' ):
   """ Get the total disk space of the storage element
       If no size is specified, terabytes will be used by default.
   """
   return getDiskSpace(path, size, total = True)
Example #6
0
 def export_getFreeDiskSpace( self, path, size = 'TB' ):
   """ Get the free disk space of the storage element
       If no size is specified, terabytes will be used by default.
   """
   return getDiskSpace(path, size)
Example #7
0
 def export_getTotalDiskSpace(self):
   """ Get the total disk space of the storage element
       If no size is specified, terabytes will be used by default.
   """
   return getDiskSpace(self.getCSOption("BasePath", "/opt/dirac/storage/sandboxes"), total=True)