File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,22 @@ paths and is also slower, since it has to do more work. Use
143
143
L « C < .add > |/routine/add» if your code does not need to guarantee the added
144
144
path is in fact a child path.
145
145
146
+ = head2 method cleanup
147
+
148
+ Defined as:
149
+
150
+ method cleanup(IO::Path:D: --> IO::Path:D)
151
+
152
+ Returns a new path that is a canonical representation of the invocant path,
153
+ cleaning up any extraneous path parts:
154
+
155
+ "foo/./././..////bar".IO.cleanup.say; # OUTPUT: «"foo/../bar".IO»
156
+ IO::Path::Win32.new("foo/./././..////bar")
157
+ .cleanup.say; "foo\..\bar".IO; # OUTPUT: «"foo\\..\\bar".IO»
158
+
159
+ Note that no file system access is made. See also
160
+ L « C < resolve > |/routine/resolve» .
161
+
146
162
= head2 method extension
147
163
148
164
Defined as:
You can’t perform that action at this time.
0 commit comments