aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrenrot3
1 files changed, 2 insertions, 1 deletions
diff --git a/renrot b/renrot
index 0b25b4c..8d4c599 100755
--- a/renrot
+++ b/renrot
@@ -16,6 +16,7 @@ use Pod::Usage;
use Image::ExifTool;
use Getopt::Long;
use File::Spec;
+use File::Basename;
# add our 'lib' directory to the include list
my $exeDir;
@@ -1378,7 +1379,7 @@ sub normalize_color {
sub aggregateFile {
my $file = shift;
my $new_dir = shift;
- my $base_name = (File::Spec->splitpath($file))[2];
+ my $base_name = basename($file);
makedir($new_dir);

Return to:

Send suggestions and report system problems to the System administrator.