### ----------------------------------------------------
### -- File::file
### -- Licenses: Artistic-2.0
### -- Authors: Tom Browder
### -- File: lib/File/file.rakumod
### ----------------------------------------------------
unit class File::file;
use Proc::Easier;

method file($file) {
    my $exe = "file $file";
    my $res = cmd $exe;
    if $res.err {
        return $res.err;
    }
    $res.out.chomp
}


