index: use realpath for test file

fastpreview
Varun Patil 2022-11-24 03:13:34 -08:00
parent 2537239af2
commit e5cc14bad0
1 changed files with 3 additions and 2 deletions

View File

@ -210,8 +210,9 @@ class Index extends Command
/** Make sure exiftool is available */ /** Make sure exiftool is available */
private function testExif() private function testExif()
{ {
$testfile = __DIR__.'/../../exiftest.jpg'; $testfilepath = __DIR__.'/../../exiftest.jpg';
if (!file_exists($testfile)) { $testfile = realpath($testfilepath);
if (!$testfile) {
error_log("Couldn't find Exif test file {$testfile}"); error_log("Couldn't find Exif test file {$testfile}");
return false; return false;