FileCopyFlags.hx 366 B

123456789101112
  1. package asys;
  2. enum abstract FileCopyFlags(Int) {
  3. var FailIfExists = 1 << 0; // fail if destination exists
  4. var COWClone = 1 << 1; // copy-on-write reflink if possible
  5. var COWCloneForce = 1 << 2; // copy-on-write reflink or fail
  6. inline function get_raw():Int return this;
  7. @:op(A | B)
  8. inline function join(other:FileCopyFlags) return this | other.get_raw();
  9. }