Packagecom.adobe.flascc.vfs
Classpublic class PathUtils
InheritancePathUtils Inheritance Object

A collection of path handling related functions



Public Methods
 MethodDefined 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
Method Detail
getDirectory()method
public static function getDirectory(path:String):String

Return everything except the last component of the supplied path.

Parameters

path:String

Returns
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

Returns
String