This commit is contained in:
2023-08-29 15:47:58 +10:00
parent a49a86a597
commit 258e7fe307

View File

@@ -66,12 +66,10 @@ function tempFileInfo(string $filePath): array
* @param string $part The file part number.
* @return bool If the file exists.
*/
function tempFileExists(string $dir, string $name, string $extension = '', string $part = ''): string
function tempFileExists(string $dir, string $name, string $extension = '', string $part = ''): bool
{
$filename = constructTempFileName($dir, $name, $extension, $part);
$exists = file_exists($filename);
Log::Info($filename . ' ' . ($exists ? 'true' : 'false'));
return $exists;
}