Packagecom.hippohx
Classpublic class FileKind

The FileKind object represents an item on the system, either a file or a directory. This is an ActionScript "copy" of the haXe FileKind object.

See also

com.hippohx.File.readDirectory()
com.hippohx.FileStats


Public Properties
 PropertyDefined by
  name : String = ""
The name of the item.
FileKind
  stats : FileStats
Each FileKind object has a FileStats object that gathers a bunch of related data to it.
FileKind
  type : String = ""
The type of the item: "F" for files, "D" for directories.
FileKind
Public Methods
 MethodDefined by
  
FileKind
  
isDirectory():Boolean
Returns true if it's a directory, false otherwise.
FileKind
  
toString():String
This is just a nice way of displaying object's information within a trace function.
FileKind
Public Constants
 ConstantDefined by
  DIRECTORY_TYPE : String = "D"
[static]
FileKind
  FILE_TYPE : String = "F"
[static]
FileKind
Property detail
nameproperty
public var name:String = ""

The name of the item. Please note that this is NOT its path!

statsproperty 
public var stats:FileStats

Each FileKind object has a FileStats object that gathers a bunch of related data to it.

See also

typeproperty 
public var type:String = ""

The type of the item: "F" for files, "D" for directories. Use FILE_TYPE, DIRECTORY_TYPE and isDirectory().

See also

Constructor detail
FileKind()constructor
public function FileKind()
Method detail
isDirectory()method
public function isDirectory():Boolean

Returns true if it's a directory, false otherwise.

Returns
Boolean — true if it's a directory, false otherwise.
toString()method 
public function toString():String

This is just a nice way of displaying object's information within a trace function.

Returns
String
Constant detail
DIRECTORY_TYPEconstant
public static const DIRECTORY_TYPE:String = "D"
FILE_TYPEconstant 
public static const FILE_TYPE:String = "F"