From 45fd059c3a1189590e8664b53be9bd504f8c3cb8 Mon Sep 17 00:00:00 2001 From: Sawyer X Date: Sun, 6 Nov 2016 10:32:01 +0100 Subject: [PATCH] Replace dirname() with Path::Tiny pattern --- lib/Dancer2/FileUtils.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Dancer2/FileUtils.pm b/lib/Dancer2/FileUtils.pm index 6a200f2d5..6232b9e2e 100644 --- a/lib/Dancer2/FileUtils.pm +++ b/lib/Dancer2/FileUtils.pm @@ -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 {