This commit is contained in:
2023-08-29 15:29:43 +10:00
parent a61aafdc6a
commit 277a0ae2e3

View File

@@ -2,6 +2,7 @@
/* Temp File Helper Functions */
use Illuminate\Support\Facades\Log;
/**
* Generate a temporary file path.
@@ -67,7 +68,8 @@ function tempFileInfo(string $filePath): array
*/
function tempFileExists(string $dir, string $name, string $extension = '', string $part = ''): string
{
$filename = $dir . DIRECTORY_SEPARATOR . $name . ($extension !== '' ? ".{$extension}" : '') . ($part !== "" ? ".part={$part}" : '');
$filename = constructTempFileName($dir, $name, $extension, $part);
Log::Info($filename);
return file_exists($filename);
}