CSplitpath:Merge
The Merge method combines all of the components of the CSplitpath object into a single path. Use this to assemble a full path name afer components have been changed.
sString = CSplitpath:Merge() where |
|
sFolder is a string containing the full specification of the merged file name. On failure, nil is returned.
Suppose a file exists with a full path named sPath. The script below changed the file name and extension to the string sNewName and merges the components back into a full path:
|
-- create a CSplitpath object for path sPath |
|
-- change the file name and extension |
|
-- merge components into a new path, sNewPath |