Documentation for method z

Documentation for method z, assembled from the following types:

class IO::Path

From IO::Path

(IO::Path) method z

Defined as:

method z(--> Bool:D)

Returns True if the invocant is a path that exists and has size of 0. May be called on paths that are directories, in which case the reported file size (and thus the result of this method) is dependent on the operating system. 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.