We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 839a6b3 commit 14ab6b5Copy full SHA for 14ab6b5
doc/Language/io.pod6
@@ -177,6 +177,18 @@ the file test method C<f>:
177
say "testfile".IO.f; # OUTPUT: «True»
178
say "lib".IO.f; # OUTPUT: «False»
179
180
+There are other methods that can be used to query a file or directory, some useful ones are:
181
+
182
+=begin code :skip-test
183
+my $f = "fileA";
184
185
+say $f.modified; # return instant of file (or directory) change
186
+say $f.accessed; # return last time file (or directory) was read
187
+say $f.s; # return size of file (or directory inode) in bytes
188
+=end code
189
190
+See more methods and details at <L<IO::Path|/type/IO::Path>.
191
192
=head1 Getting a directory listing
193
194
To list the contents of the current directory, use the C<dir> function. It
0 commit comments