CSplitpath:Split
The Split method assigns a path name to the CSplitpath object and splits it into its components.
bSuccess = CSplitpath:Split( sPath ) |
|
This is essentially an alias for the SetPath method but SetPath is usually used right after new, whereas Split is normally used after working on the path components.
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 into components |
|
-- do something |
|
-- when done with S, remove it from memory |