CSplitpath:GetFilename
The GetFilename method returns the filename from a CSplitpath object. The filename includes no directory or file extension.
sFileName = CSplitpath:GetFilename() |
Suppose a file exists with a full path named sPath. The following script fragment retrieves the file name component:
|
-- create a CSplitpath object |
|
-- Specify the path to be split |
|
-- assigns the file name to sFileName. |
|
-- when done with S, remove it from memory |