Cosmo Update Asset Size and Date
The Cosmo Update Asset Size and Date Action node updates the file size and modification date of an asset in the Cosmo database.
The node reads the actual media file from the storage system and compares its properties with the database values (filesize and lastModified). If differences are detected, the database entries are updated accordingly.
All database entries referencing the same file path are updated simultaneously.
This node is especially useful for workflows involving dynamically growing or modified files.
Input Parameters
Asset Path Full file path of the asset whose information should be updated.
The asset lookup is performed using the Unix path representation. Ensure that path mappings and stored paths in the database are consistent.

Behavior
Reads the file size and modification date directly from the file system
Updates the
filesizeandlastModifiedfields in the Cosmo databaseUpdates all asset instances referencing the same path
Does not modify the media file itself
Supports asynchronous execution
Typical Use Cases
growing recording files (e.g., ongoing capture or ingest)
restored media from backup
file replacement with newer media
storage migration or manual copy operations
verification workflows after transfers
Benefits
keeps database information consistent with real storage
prevents incorrect online/offline or outdated file states
avoids manual database maintenance
improves reliability of downstream workflows
Practical Note
Cosmo normally trusts the information stored in its database. This node is the way to tell Cosmo: “Check the disk again — the file has changed.”
Without running this node, Cosmo may still display outdated size or date information even though the media file itself has been modified.
Last updated