Path.hx 757 B

12345678910111213141516171819202122232425262728293031323334353637
  1. package eval.luv;
  2. import eval.integers.Int64;
  3. import eval.integers.UInt64;
  4. /**
  5. Relevant directories.
  6. @see https://aantron.github.io/luv/luv/Luv/Path
  7. **/
  8. extern class Path {
  9. /**
  10. Evaluates to the executable's path.
  11. It's always the path to the Haxe compiler.
  12. **/
  13. static function exePath():Result<NativeString>;
  14. /**
  15. Evaluates to the current working directory.
  16. **/
  17. static function cwd():Result<NativeString>;
  18. /**
  19. Changes the current working directory.
  20. **/
  21. static function chdir(dir:NativeString):Result<Result.NoData>;
  22. /**
  23. Evaluates to the path of the home directory.
  24. **/
  25. static function homedir():Result<NativeString>;
  26. /**
  27. Evaluates to the path of the temporary directory.
  28. **/
  29. static function tmpdir():Result<NativeString>;
  30. }