Skip to content

Commit

Permalink
Replace dirname() with Path::Tiny pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
xsawyerx committed Nov 6, 2016
1 parent 814231b commit 45fd059
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Dancer2/FileUtils.pm
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ sub path_or_empty {
return -e $path ? $path : '';
}

sub dirname { File::Basename::dirname(@_) }
sub dirname { return Path::Tiny::path(@_)->parent->stringify; }

# Can be removed
sub set_file_mode {
Expand Down

0 comments on commit 45fd059

Please sign in to comment.