Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 318 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 318 Bytes

Access Rights

Concise Kotlin DSL for Unix access rights

Usage

val mode = Mode { rwx + rx + rx }
mode.str  // "rwxr-xr-x"
mode.bits // 755 (octal)
Mode { rwx + rwx + rwx }    // 777, rwxrwxrwx
Mode { void + void + void } // 000, ---------
Mode { rw + r + r }         // 644, rw-r--r--