DirectoryEntry.hx 719 B

12345678910111213141516171819202122232425
  1. package eval.uv;
  2. import haxe.io.FilePath;
  3. class DirectoryEntry implements asys.DirectoryEntry {
  4. public var name(get, never):FilePath;
  5. extern function get_type():asys.uv.UVDirentType;
  6. extern function get_name():FilePath;
  7. public function isBlockDevice():Bool return get_type() == DirentBlock;
  8. public function isCharacterDevice():Bool return get_type() == DirentChar;
  9. public function isDirectory():Bool return get_type() == DirentDir;
  10. public function isFIFO():Bool return get_type() == DirentFifo;
  11. public function isFile():Bool return get_type() == DirentFile;
  12. public function isSocket():Bool return get_type() == DirentSocket;
  13. public function isSymbolicLink():Bool return get_type() == DirentLink;
  14. }