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)
def test_getDiskSpace(): res = getDiskSpace("/") assert res["OK"] res = getTotalDiskSpace() assert res["OK"] res = getFreeDiskSpace() assert res["OK"]
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)
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)
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)
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)
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)