method cleanup
Documentation for method cleanup
assembled from the following types:
class IO::Path
From IO::Path
(IO::Path) method cleanup
Defined as:
method cleanup(IO::Path: --> IO::Path)
Returns a new path that is a canonical representation of the invocant path, cleaning up any extraneous path parts:
"foo/./././..////bar".IO.cleanup.say; # OUTPUT: «"foo/../bar".IO»IO::Path::Win32.new("foo/./././..////bar").cleanup.say; "foo\..\bar".IO; # OUTPUT: «"foo\..\bar".IO»
Note that no filesystem access is made. See also resolve
.