File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -259,12 +259,12 @@ Defined as:
259
259
method dirname(IO::Path:D:)
260
260
261
261
Returns the directory name portion of the path object. That is, it returns
262
- the path excluding the volume and the base name.
263
-
264
- say IO::Path.new("/home/camelia/myfile.p6").dirname; # OUTPUT: «/home/camelia»
265
- say IO::Path.new("/home/camelia").dirname; # OUTPUT: «/home»
266
- say IO::Path.new("/home").dirname; # OUTPUT: «/»
262
+ the path excluding the L < volume|/routine/volume > and the
263
+ L < base name|/routine/basename > .
267
264
265
+ say IO::Path.new("/home/camelia/myfile.p6").dirname; # OUTPUT: «/home/camelia»
266
+ say IO::Path::Win32.new("C:/home/camelia").dirname; # OUTPUT: «/home»
267
+ say IO::Path.new("/home").dirname; # OUTPUT: «/»
268
268
269
269
= head2 method volume
270
270
You can’t perform that action at this time.
0 commit comments