s
ErrorsCollection

s

Synthesised documentation from type/IO/Path type/IO/Special

From type/IO/Path

See Original text in context

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

Returns the file size in bytes. May be called on paths that are directories, in which case the reported size is dependent on the operating system. The method will fail with X::IO::DoesNotExist if the path points to a non-existent filesystem entity.

say $*EXECUTABLE.IO.s# OUTPUT: «467␤»

From type/IO/Special

See Original text in context

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

The 'size' file test operator, always returns 0.