The catdir routine

Combined from primary sources listed below.

In class IO::Spec::Unix ( Type/IO/Spec/Unix )§

See primary docmentation in context for method catdir.

method catdir§

method catdir (*@parts --> Str:D)

Concatenates multiple path fragments and returns the canonical representation of the resultant path as a string. The @parts are Str objects and are allowed to contain path separators.

IO::Spec::Unix.catdir(<foo/bar ber raku>).say# OUTPUT: «foo/bar/ber/raku␤»

In class IO::Spec::Win32 ( Type/IO/Spec/Win32 )§

See primary docmentation in context for method catdir.

method catdir§

method catdir (*@parts --> Str:D)

Concatenates multiple path fragments and returns the canonical representation of the resultant path as a string. The @parts are Str objects and are allowed to contain path separators.

IO::Spec::Win32.catdir(<foo/bar ber raku>).say;
# OUTPUT: «foo\bar\ber\raku␤»

In class IO::Spec::Cygwin ( Type/IO/Spec/Cygwin )§

See primary docmentation in context for method catdir.

method catdir§

method catdir (*@parts --> Str:D)

Concatenates multiple path fragments and returns the canonical representation of the resultant path as a string. The @parts are Str objects and are allowed to contain path separators.

IO::Spec::Cygwin.catdir(<foo/bar ber raku>).say;
# OUTPUT: «foo/bar/ber/raku␤»