os.Path.isroot

The os.Path.isroot method is used to check whether a file path is a root one. The syntax of the function is as follows:

 

CALL os.Path.isroot(path) RETURNING result

 

where:

·         path = a string containing the path to check,

·         result = TRUE if the path is a root one or FALSE otherwise.