Storage Modules

GRID_LRT’s storage module enables users to interface with grid storage.

GRID_LRT.storage.gsifile

class GRID_LRT.storage.gsifile.GSIFile(location, parent_dir=None)[source]

Bases: object

__init__(location, parent_dir=None)[source]

x.__init__(…) initializes x; see help(type(x)) for signature

delete()[source]
get_dir_size()[source]

Will go one level deeper and sum the sizes of all objects. If the objects are directories, you’ll have to do the iteration yourself!

get_parent_dir()[source]
is_empty()[source]
list_dir()[source]

Checks the status of all srm links in the folder given. Returns a list of localities

class GRID_LRT.storage.gsifile.MockGSIFile(location)[source]

Bases: GRID_LRT.storage.gsifile.GSIFile

__init__(location)[source]

uses text from uberftp -ls to initialize, saved in a file

delete()
get_dir_size()

Will go one level deeper and sum the sizes of all objects. If the objects are directories, you’ll have to do the iteration yourself!

get_parent_dir()
is_empty()
list_dir()[source]

Checks the status of all srm links in the folder given. Returns a list of localities