Revert "Fix: Skip subfolders with numeric extensions in B1→B2 downloads"
This reverts commit 4dff200e10.
This commit is contained in:
parent
4dff200e10
commit
0408d282a5
1 changed files with 1 additions and 7 deletions
|
|
@ -123,18 +123,12 @@ def process_campaign(campaign, dam, box, db, notifier, config):
|
|||
logger.warning("Skipping item identified as folder: {} (Type: {})".format(asset_name, type_name))
|
||||
continue
|
||||
|
||||
# SAFEGUARD 2: Check for missing or invalid extension (likely a container/folder)
|
||||
# SAFEGUARD 2: Check for missing extension (likely a container/folder)
|
||||
_, ext = os.path.splitext(asset_name)
|
||||
if not ext or len(ext) < 2: # No extension or just a dot
|
||||
logger.warning("Skipping item with no extension (likely folder/container): {}".format(asset_name))
|
||||
continue
|
||||
|
||||
# SAFEGUARD 3: Numeric-only extension = version number, not a file (e.g. "WND_PCS 2026 2.0")
|
||||
ext_without_dot = ext[1:] # Remove the leading dot
|
||||
if ext_without_dot.isdigit():
|
||||
logger.warning("Skipping item with numeric extension (likely versioned folder): {} (ext: {})".format(asset_name, ext))
|
||||
continue
|
||||
|
||||
# SKIP CHECK: If this asset was already processed (exists in DB), skip re-downloading
|
||||
existing_tracking_id = db.find_global_master_by_opentext_id(asset_id)
|
||||
if existing_tracking_id:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue