Ensure Media.tag exists for all images after import and via cron
Webapp now creates Deploy/Control/Media.tag after every image import. Cron updated to create (not just touch) Media.tag for any image directory that has Deploy/Control/. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -717,6 +717,12 @@ def images_import():
|
||||
# Flat layout: treat source as Deploy contents
|
||||
_import_deploy(source, dest, target, move=use_move)
|
||||
|
||||
# Ensure Media.tag exists (FlatSetupLoader.exe drive detection)
|
||||
control_dir = os.path.join(dest, "Control")
|
||||
os.makedirs(control_dir, exist_ok=True)
|
||||
media_tag = os.path.join(control_dir, "Media.tag")
|
||||
Path(media_tag).touch()
|
||||
|
||||
audit("IMAGE_IMPORT", f"{source} -> {target}")
|
||||
flash(
|
||||
f"Successfully imported content to {FRIENDLY_NAMES.get(target, target)}.",
|
||||
|
||||
Reference in New Issue
Block a user