Collection of DIRAC useful operating system related modules by default on Error they return None


Get the total size of the given directory in MB

DIRAC.Core.Utilities.Os.getDiskSpace(path='.', exclude=None)

Get the free disk space in the partition containing the path. The disk space is reported in MBytes. Returned 0 in case of any error, e.g. path does not exist

DIRAC.Core.Utilities.Os.sourceEnv(timeout, cmdTuple, inputEnv=None)

Function to source configuration files in a platform dependent way and get back the environment


Utility to squeeze the string containing a PATH-like value to leave only unique elements preserving the original order


Deprecated: Will be removed in DIRAC 8.1