os.Path.rootname

The os.Path.rootname is used to return the file path with its last element without an extension. The syntax of the function is as follows:

 

CALL os.Path.rootname(f_path) RETURNING r_name

 

where:

·         f_path = a string containing the file path,

·         r_name = a string containing the file path with its last element without an extension.

 

Usage

Being executed, the function removes the last file extension.

For example, passing \\root\\dir\\f_name.exe as the parameter will result in \root\dir\f_name