Skip to content

Commit 45fd059

Browse files
committed
Replace dirname() with Path::Tiny pattern
1 parent 814231b commit 45fd059

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Dancer2/FileUtils.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ sub path_or_empty {
3131
return -e $path ? $path : '';
3232
}
3333

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

3636
# Can be removed
3737
sub set_file_mode {

0 commit comments

Comments
 (0)