Documentation for method d

Documentation for method d, assembled from the following types:

class IO::Path

From IO::Path

(IO::Path) method d

Defined as:

method d(--> Bool:D)

Returns True if the invocant is a path that exists and is a directory. The method will fail with X::IO::DoesNotExist if the path points to a non-existent filesystem entity.

TIP: use smartmatch with Pairs to perform multiple file tests.

class IO::Special

From IO::Special

(IO::Special) method d

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

The 'directory' file test operator, always returns False.