DirectoryListing

class DIRAC.DataManagementSystem.Client.DirectoryListing.DirectoryListing

Bases: object

__init__()
addDataset(name, datasetDict, numericid)

Pretty print of the dataset ls output

addDirectory(name, dirDict, numericid)

Pretty print of the file ls output

addFile(name, fileDict, repDict, numericid)

Pretty print of the file ls output

addSimpleFile(name)

Add single files to be sorted later

humanReadableSize(num, suffix='B')

Translate file size in bytes to human readable

Powers of 2 are used (1Mi = 2^20 = 1048576 bytes).

printListing(reverse, timeorder, sizeorder, humanread)
printOrdered()

print the ordered list