COMPS.Data.AssetFile module¶
-
COMPS.Data.AssetFile.
get_media_type_from_filename
(filename)¶
-
class
COMPS.Data.AssetFile.
AssetFile
(file_name, md5_checksum=None)¶ Bases:
COMPS.Data.SerializableEntity.SerializableEntity
A base-type for all files associated with certain entity-types. This includes AssetCollectionFile (associated with an AssetCollection), SimulationFile (associated with a Simulation), and WorkItemFile (associated with a WorkItem).
This is used only for adding properties to these file-types, and shouldn’t be created directly (should probably be an ABC).
-
property
file_name
¶
-
property
md5_checksum
¶
-
property
length
¶
-
property
uri
¶
-
retrieve
()¶
-
property