To meet your needs, we constantly work to improve Querix products.
This means that Lycia documentation is developing as well.
In case you have found a certain dissonance between the provided information and the actual behavior of Lycia 3 and/or your applications, please, let us know about this via documentation@querix.com so that we can introduce the necessary changes to our documentation.
Thank you for your attention and cooperation.
The os.Path.basename method is used to return a string value standing for the last path element. The syntax of the method is as follows:
CALL os.Path.basename(file_name) RETURNING base_name
where:
· file_name = a STRING variable standing for the file name,
· base_name = a STRING variable standing for the last path element.
Usage
As the function invocation extracts the last path element of the path, passing "\root\dir001\file.txt" as the parameter will return "file.txt", for example.
To remove the last component of the path, the os.Path.dirname method should be used.