|    | 
CSplitpath:Split
The Merge method combines the path components in a CSplitpath object into a single path.
| bSuccess = CSplitpath:Merge() | 
 | 
 On success,
this method returns true.
    On success,
this method returns true.
 On failure,
this method returns false.
    On failure,
this method returns false.
Suppose a file exists with a full path named sPath. The following script fragment changed the file name and extension to the string sNewName and Merges the components back into a full path:
| S = CSplitpath:new() | -- create a CSplitpath object | 
| S:SetPath(sPath) | -- assign the path sPath | 
| S:SetFilenameExt(sNewName) | -- change the file name and extension | 
| sNewPath = S:Merge(sPath) | -- merge components into a new path, sNewPath | 
| S:delete() | -- when done with S, remove it from memory |