Exiftool file path character limit on Windows release

Started by Mason, April 08, 2020, 11:15:27 PM

Previous topic - Next topic

Mason

Is it known if version 11.93 allows for file paths greater than 260 characters? I am encountering replicable 'File not found' errors when processing images with necessarily long filenames in folders with also necessarily long names. I am running exiftool-11.93 on Windows 10 post-Anniversary Update, which allows users to opt into abandoning the 260 character maximum path limit via a Windows Registry edit to HKLM\SYSTEM\CurrentControlSet\Control\FileSystem LongPathsEnabled (restart required). I can confirm the cause of my issue is related to file path length, as duplicating an image from its original location that produces the above error in Exiftool to a folder with a far shorter name and processing it from there works fine.

A check on the Microsoft dev page for this topic confirms that this registry value must be enabled and the application manifest must also include the longPathAware element in order to bypass the max path restriction.

obetz

as far as I see, this is a Perl limitation.

Following your report, I added the longPathAware manifest to my launcher *), but even with this launcher, I can't access long file paths with ExifTool. I was able to access long file paths with a simple C program (and this manifest), so the manifest should be correct.

Not being a Perl monk, I don't know whether long path name support is possible by some extension or setting in Perl.

Oliver

)* https://oliverbetz.de/pages/Artikel/ExifTool-for-Windows (longPathAware manifest not in the public download)