Package | com.adobe.flascc.vfs |
Class | public class PathUtils |
Inheritance | PathUtils ![]() |
Method | Defined By | ||
---|---|---|---|
getDirectory(path:String):String [static]
Return everything except the last component of the supplied path. | PathUtils | ||
toCanonicalPath(path:String):String [static]
Return a path equivalent to the argument, with these properties:
1. | PathUtils |
getDirectory | () | method |
public static function getDirectory(path:String):String
Return everything except the last component of the supplied path.
Parameters
path:String |
String |
toCanonicalPath | () | method |
public static function toCanonicalPath(path:String):String
Return a path equivalent to the argument, with these properties: 1. is absolute (will always have a leading '/') 2. doesn't contain '.' or '..' 3. never has a trailing '/', even if the argument path did 4. never has two or more "/" characters in a row TODO: Relative paths are assumed to be relative to the current working directory.
Parameters
path:String |
String |