Combined from primary sources listed below.
See primary docmentation in context for method IO.
See primary docmentation in context for method IO.
See primary docmentation in context for method IO.
method IO()
Returns the corresponding resource as an IO::Path, which can effectively be used as such.
See primary docmentation in context for method IO.
See primary docmentation in context for method IO.
See primary docmentation in context for method IO.
method IO(--> IO::Path:D)
Coerces the invocant to IO::Path.
.say for '.'.IO.dir; # gives a directory listing
See primary docmentation in context for method IO.
method IO(IO::Special:D: --> IO::Special)
Returns the invocant.
say $*IN.path.IO.what; # OUTPUT: «<STDIN>»
say $*IN.path.what; # OUTPUT: «<STDIN>»
See primary docmentation in context for method IO.
See primary docmentation in context for method IO.
method IO(Dateish:D: --> IO::Path:D)
Returns an IO::Path object representing the stringified value of the Dateish object:
Date.today.IO.say; # OUTPUT: «"2016-10-03".IO»
DateTime.now.IO.say; # OUTPUT: «"2016-10-03T11:14:47.977994-04:00".IO»
PORTABILITY NOTE: some operating systems (e.g. Windows) do not permit colons (:) in filenames, which would be present in IO::Path created from a DateTime object.