Skip to content

ilyawaisman/accessrights

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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--

About

Concise Kotlin DSL for Unix access rights

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages