Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Rename .slash to .dir-sep
Slash is too culturally specific, masak++
  • Loading branch information
lizmat committed Oct 3, 2014
1 parent e0d5ddc commit d69a874
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/core/CompUnitRepo/Local/File.pm
Expand Up @@ -28,8 +28,8 @@ class CompUnitRepo::Local::File does CompUnitRepo::Locally {
# sorry, cannot handle this one
return () unless %extensions{$from}:exists;

my $slash := $*SPEC.slash;
my $base := $!path ~ $slash ~ $name.subst(:g, "::", $slash) ~ '.';
my $dir-sep := $*SPEC.dir-sep;
my $base := $!path ~ $dir-sep ~ $name.subst(:g, "::", $dir-sep) ~ '.';
if %seen{$base} -> $found {
return $found;
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/IO/Spec/Unix.pm
Expand Up @@ -17,7 +17,7 @@ my class IO::Spec::Unix is IO::Spec {
$path
}

method slash { '/' }
method dir-sep { '/' }
method curdir { '.' }
method updir { '..' }
method curupdir { none('.','..') }
Expand Down
2 changes: 1 addition & 1 deletion src/core/IO/Spec/Win32.pm
Expand Up @@ -17,7 +17,7 @@ my class IO::Spec::Win32 is IO::Spec::Unix {
self!canon-cat(|@dirs);
}

method slash { '\\' }
method dir-sep { '\\' }
method splitdir($dir) { $dir.split($slash) }
method catfile(|c) { self.catdir(|c) }
method devnull { 'nul' }
Expand Down

0 comments on commit d69a874

Please sign in to comment.