os.Path.rootdir

The os.Path.rootdir method is used to return the root directory of the current working path. The syntax of the function is as follows:

 

CALL os.Path.rootdir() RETURNING root_dir

 

where:

ยท         root_dir = a string containing the root directory of the current working path:

o    / = on UNIX,

o    [a-zA-Z]:\ = on Windows.