Documentation for method f assembled from the following pages:

Class: IO::Path §

From IO::Path

(IO::Path) method f §

Defined as:

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

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

Class: IO::Special §

From IO::Special

(IO::Special) method f §

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

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