Documentation for routine IO

Documentation for routine IO, assembled from the following types:

class Cool

From Cool

(Cool) method IO

Defined as:

method IO(--> IO::Path:D)

Coerces the invocant to IO::Path.

.say for '.'.IO.dir;        # gives a directory listing 

role Dateish

From Dateish

(Dateish) method IO

Defined as:

method IO(Dateish:D: --> IO::Path:D)

Returns an IO::Path object representing the stringified value of the Dateish object:;   # OUTPUT: «"2016-10-03".IO␤» 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.

class IO::Path

From IO::Path

(IO::Path) method IO

method IO(IO::Path:D: --> IO::Path)

Returns the invocant.

role IO::Special

From IO::Special

(IO::Special) method IO

method IO(IO::Special:D: --> IO::Special)

This returns the IO::Special object, it is provided for conformance to the IO::Path interface.