File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ Returns the absolute path as a string.
55
55
Returns the basename part of the path object. That is, it returns the name of
56
56
the file relative to its directory.
57
57
58
- say IO::Path.new("/etc/passwd ").basename; # passwd
58
+ say IO::Path.new("docs/README.pod ").basename; # README.pod
59
59
60
60
= head2 method extension
61
61
@@ -72,7 +72,9 @@ Returns the extension (if any) of the path object.
72
72
Returns the directory name portion of the path object. That is, it returns
73
73
the path excluding the volume and the base name.
74
74
75
- say IO::Path.new("/etc/passwd").dirname; # /etc
75
+ say IO::Path.new("/home/camelia/myfile.p6").dirname; # /home/camelia
76
+ say IO::Path.new("/home/camelia").dirname; # /home
77
+ say IO::Path.new("/home").dirname; # /
76
78
77
79
= head2 method volume
78
80
You can’t perform that action at this time.
0 commit comments