Subject: | File::Path::Tiny::rm always changes directory if there's a subdirectory |
because $fast option is not passed correctly. Here's a patch.
--- Tiny.pm.orig 2018-06-06 21:44:55.673839236 +0900
+++ Tiny.pm 2018-06-06 21:45:26.529838743 +0900
@@ -67,7 +67,7 @@
my $long = File::Spec->catdir( $path, $thing );
if ( !-l $long && -d _ ) {
_bail_if_changed( $path, $orig_dev, $orig_ino );
- rm($long) or !-e $long or return;
+ rm( $long, $fast ) or !-e $long or return;
}
else {
_bail_if_changed( $path, $orig_dev, $orig_ino );