Subject: | Unable to read files when path contains ampersand |
Date: | Sun, 26 Feb 2012 22:15:10 +0000 |
To: | bug-Image-ExifTool [...] rt.cpan.org |
From: | Benjamin Hodgetts <ben [...] xnode.org> |
ExifTool: 8.79
OS: Arch Linux on Kernel 3.2.6-2
Perl: v5.14.2 built for x86_64-linux-thread-multi
The issue is when exiftool tries to read files in a path that contains
an ampersand, it appears to be unable to read them, case in point:
=========================================================
=========================================================
htpc@topaz Iglu & Hartly $ /usr/bin/vendor_perl/exiftool -j */*
[{
"SourceFile": "& Then Boom/01 Believe.mp3",
"ExifToolVersion": 8.79,
"FileName": "01 Believe.mp3",
"Directory": "& Then Boom",
"Error": "Error opening file"
},
{
"SourceFile": "& Then Boom/02 Violent and Young.mp3",
"ExifToolVersion": 8.79,
"FileName": "02 Violent and Young.mp3",
"Directory": "& Then Boom",
"Error": "Error opening file"
},
{
"SourceFile": "& Then Boom/03 Tomorrow.mp3",
"ExifToolVersion": 8.79,
"FileName": "03 Tomorrow.mp3",
"Directory": "& Then Boom",
"Error": "Error opening file"
},
{
"SourceFile": "& Then Boom/04 Build.mp3",
"ExifToolVersion": 8.79,
"FileName": "04 Build.mp3",
"Directory": "& Then Boom",
"Error": "Error opening file"
},
{
"SourceFile": "& Then Boom/05 DayGlo.mp3",
"ExifToolVersion": 8.79,
"FileName": "05 DayGlo.mp3",
"Directory": "& Then Boom",
"Error": "Error opening file"
},
{
"SourceFile": "& Then Boom/06 In This City.mp3",
"ExifToolVersion": 8.79,
"FileName": "06 In This City.mp3",
"Directory": "& Then Boom",
"Error": "Error opening file"
},
{
"SourceFile": "& Then Boom/07 People.mp3",
"ExifToolVersion": 8.79,
"FileName": "07 People.mp3",
"Directory": "& Then Boom",
"Error": "Error opening file"
},
{
"SourceFile": "& Then Boom/08 Whatever We Like.mp3",
"ExifToolVersion": 8.79,
"FileName": "08 Whatever We Like.mp3",
"Directory": "& Then Boom",
"Error": "Error opening file"
},
{
"SourceFile": "& Then Boom/09 We'll See.mp3",
"ExifToolVersion": 8.79,
"FileName": "09 We'll See.mp3",
"Directory": "& Then Boom",
"Error": "Error opening file"
},
{
"SourceFile": "& Then Boom/10 Out There.mp3",
"ExifToolVersion": 8.79,
"FileName": "10 Out There.mp3",
"Directory": "& Then Boom",
"Error": "Error opening file"
},
{
"SourceFile": "& Then Boom/11 Jump Out of Your Car.mp3",
"ExifToolVersion": 8.79,
"FileName": "11 Jump Out of Your Car.mp3",
"Directory": "& Then Boom",
"Error": "Error opening file"
}]
11 image files read
=========================================================
=========================================================
Permissions and ownership aren't an issue, just in case you wondered:
=========================================================
=========================================================
htpc@topaz Iglu & Hartly $ ls -lah
total 28K
drwxrwxrwx 1 htpc users 4.0K Dec 19 2010 .
drwxrwxrwx 1 htpc users 20K Feb 26 12:23 ..
drwxrwxrwx 1 htpc users 4.0K Mar 25 2011 & Then Boom
htpc@topaz Iglu & Hartly $ ls -lah \&\ Then\ Boom/
total 68M
drwxrwxrwx 1 htpc users 4.0K Mar 25 2011 .
drwxrwxrwx 1 htpc users 4.0K Dec 19 2010 ..
-rwxrwxrwx 1 htpc users 6.0M Feb 23 22:43 01 Believe.mp3
-rwxrwxrwx 1 htpc users 6.3M Feb 23 22:43 02 Violent and Young.mp3
-rwxrwxrwx 1 htpc users 6.0M Feb 23 22:43 03 Tomorrow.mp3
-rwxrwxrwx 1 htpc users 7.0M Feb 23 22:43 04 Build.mp3
-rwxrwxrwx 1 htpc users 4.8M Feb 23 22:43 05 DayGlo.mp3
-rwxrwxrwx 1 htpc users 6.0M Feb 23 22:43 06 In This City.mp3
-rwxrwxrwx 1 htpc users 5.9M Feb 23 22:43 07 People.mp3
-rwxrwxrwx 1 htpc users 6.5M Feb 23 22:43 08 Whatever We Like.mp3
-rwxrwxrwx 1 htpc users 6.6M Feb 23 22:43 09 We'll See.mp3
-rwxrwxrwx 1 htpc users 6.3M Feb 23 22:43 10 Out There.mp3
-rwxrwxrwx 1 htpc users 7.0M Feb 23 22:43 11 Jump Out of Your Car.mp3
=========================================================
=========================================================
Other than that, everything works well. Hopefully this is something
simple to fix.
Thanks,
Benjamin H.