File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -160,6 +160,18 @@ needed and returns the result as a new C<IO::Path>.
160
160
my $io = IO::Path.new( "/bin" );
161
161
say $io.child('netstat'); # "/bin/netstat".IO
162
162
163
+ = head2 method resolve
164
+
165
+ method resolve(IO::Path:D: --> IO::Path)
166
+
167
+ Returns a new C < IO::Path > object with all symbolic links and references to the
168
+ parent directory (C < .. > ) physically resolved. This means that the
169
+ filesystem is examined for each directory in the path, and any symlinks found
170
+ are followed.
171
+
172
+ # bar is a symlink pointing to "/baz"
173
+ my $io = "foo/./bar/..".IO.resolve; # now "/" (the parent of "/baz")
174
+
163
175
= head2 routine dir
164
176
165
177
sub dir(Cool $path = '.', Mu :$test = none('.', '..'))
You can’t perform that action at this time.
0 commit comments