metadata variables

This commit is contained in:
Ryan
2025-03-04 16:51:15 -05:00
committed by GitHub
parent f8080daaaf
commit 5a77a264c4
8 changed files with 7 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ $sourceDir = ($sourceFolder === 'root') ? UPLOAD_DIR : rtrim(UPLOAD_DIR, '/\\')
$destDir = ($destinationFolder === 'root') ? UPLOAD_DIR : rtrim(UPLOAD_DIR, '/\\') . DIRECTORY_SEPARATOR . $destinationFolder . DIRECTORY_SEPARATOR;
// Load metadata.
$metadataFile = "file_metadata.json";
$metadataFile = META_DIR . META_FILE;
$metadata = file_exists($metadataFile) ? json_decode(file_get_contents($metadataFile), true) : [];
// Ensure destination directory exists.