Rand Stats

The uploading author of github:JJ does not match the META author of zef:jjmerelo.

Sys::Chown

github:JJ

Sys::Chown Test distro

A port of Perl's File::Chown to Raku, using Lizmat's Butterfly project

Installing

The usual

zef install Sys::Chown

Running

use Sys::Chown;

# chown by user-/group names
chown <foo bar baz>, "ujang", "ujang";
# numeric ID's still work
chown ["myfile.txt"], -1, 500;
# option: use a reference file's owner/group instead of specifying directly,
# like the Unix chown command's --reference=FILE.
chown(["mypasswd"], {ref => "/etc/passwd"} );

chown(<foo bar>, "1001:1001");

License

Licensed under the Artistic 2.0 License (the same as Raku itself).