CSplitpath:SetPath
The SetPath method assigns a path name to the CSplitpath object and splits it into its components. The Split method may also be used to split a path.
bSuccess = CSplitpath:SetPath( sPath ) |
|
Suppose a file exists with a full path named sPath. The following script fragment assigns the path name and splits it into components:
|
-- create a CSplitpath object |
|
-- assign the path and split it |
|
-- do something |
|
-- when done with S, remove it from memory |