module

Beryl::Apply::Posix

Commandes de lecture de fichiers, BSD ou GNU selon le système cible : stat et l'empreinte SHA-256 n'ont pas la même syntaxe.

Class methods

mode(path : String, os : String) : String

Permissions en octal (644).

Source
mode_owner(path : String, os : String) : String

Permissions et propriétaire sur une ligne : 644 user:groupe.

Source
owner(path : String, os : String, with_group : Bool = true) : String

Propriétaire, user:groupe ou user seul.

Source
sha256(path : String, os : String) : String

Empreinte SHA-256 en hexadécimal, vide si le fichier est absent.

Source