@@ -662,7 +662,7 @@ Returns a string representation of the parent directory (usually C<"..">).
662
662
class IO::Path is Cool { }
663
663
664
664
Holds a path of a file or directory. The path is generally divided
665
- into three parts, the I<volume>, I<directory > and I<base name>.
665
+ into three parts, the I<volume>, I<dirname > and I<base name>.
666
666
667
667
On Windows, the volume is a drive letter like C<C:>, or a UNC network volume
668
668
like C<\\share\>. On UNIX-based systems, the volume part is empty.
@@ -671,7 +671,7 @@ The basename is name of the file or directory that the C<IO::Path> object
671
671
represents, and the directory is the part of the path leading up to the
672
672
basename.
673
673
674
- path volume directory basename
674
+ path volume dirname basename
675
675
/usr/bin/gvim /usr/bin gvim
676
676
/usr/bin/ /usr bin
677
677
foo/bar.txt foo bar.txt
@@ -691,7 +691,7 @@ C<.IO> coercer:
691
691
Of course, you can always call the C<.new> method as well:
692
692
693
693
my $io = IO::Path.new( $full-path );
694
- my $io = IO::Path.new( :$volume, :$directory , :$basename);
694
+ my $io = IO::Path.new( :$volume, :$dirname , :$basename);
695
695
696
696
Whenever a new C<IO::Path> is created, an internal absolute and cleaned version
697
697
of the specified path is stored, using the implicitely or explicitely
0 commit comments