File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -308,17 +308,22 @@ needed and returns the result as a new C<IO::Path>.
308
308
309
309
= head2 method resolve
310
310
311
- method resolve(IO::Path:D: --> IO::Path)
311
+ method resolve(IO::Path:D: :$completely --> IO::Path)
312
312
313
313
Returns a new C < IO::Path > object with all symbolic links and references to the
314
- parent directory (C < .. > ) resolved. This means that the filesystem is examined
314
+ parent directory (C < .. > ) resolved. This means that the filesystem is examined
315
315
for each directory in the path, and any symlinks found are followed.
316
316
317
317
# bar is a symlink pointing to "/baz"
318
318
my $io = "foo/./bar/..".IO.resolve; # now "/" (the parent of "/baz")
319
319
320
- NOTE: Currently (May 2016) this method doesn't work correctly on all platforms,
321
- e.g. Windows, since it assumes POSIX semantics.
320
+ If C < $completely > , which defaults to C < False > , is set to a true value, the
321
+ method will L « C < fail > |/routine/fail» if it cannot completely resolve the path,
322
+ otherwise, it will resolve as much as possible, and will merely perform
323
+ L « C < cleanup > |/routine/cleanup» of the rest of the path.
324
+
325
+ NOTE: Currently (April 2017) this method doesn't work correctly on all
326
+ platforms, e.g. Windows, since it assumes POSIX semantics.
322
327
323
328
= head2 routine dir
324
329
You can’t perform that action at this time.
0 commit comments