New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a function/method to read the mode of a file #4353
Comments
From anteusz@freemail.huHi, I cannot get the mode of a file in Perl 6. In Perl5, Marton |
From @smlsAgreed. The .mkdir and .chmod methods on IO::Path (as well as their subroutine forms &mkdir and &chmod), take a numeric $mode argument. Therefore it only makes sense to also provide a way to fetch this mode number for an existing file. We can already use the single-letter methods on IO::Path to get *some* information about the permissions of an existing file from the point of view of the current user: given "foo.txt".IO { But this does not cover the full information that the numeric file mode contains. |
The RT System itself - Status changed from 'new' to 'open' |
From @MasterDuke17Implemented in rakudo/rakudo#773 |
From @MasterDuke17Implemented in Rakudo PR #773 (rakudo/rakudo#773). |
From @MasterDuke17Tests added in Raku/roast@9e76d49 |
@MasterDuke17 - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#125489 (status was 'resolved')
Searchable as RT125489$
The text was updated successfully, but these errors were encountered: