oioioi.filetracker.storage
¶
Module Contents¶
Classes¶
A base storage class, providing some default behaviors that all other |
- class oioioi.filetracker.storage.FiletrackerStorage(prefix='/', client=None)[source]¶
Bases:
django.core.files.storage.Storage
A base storage class, providing some default behaviors that all other storage systems can inherit or override, as necessary.
- save(name, content, max_length=None)[source]¶
Save new content to the file specified by name. The content should be a proper File object or any Python file-like object, ready to be read from the beginning.
- exists(name)[source]¶
Return True if a file referenced by the given name already exists in the storage system, or False if the name is available for a new file.
- get_modified_time(name)[source]¶
Return the last modified time (as a datetime) of the file specified by name. The datetime will be timezone-aware if USE_TZ=True.
- get_created_time(name)[source]¶
Return the creation time (as a datetime) of the file specified by name. The datetime will be timezone-aware if USE_TZ=True.
- get_accessed_time(name)[source]¶
Return the last accessed time (as a datetime) of the file specified by name. The datetime will be timezone-aware if USE_TZ=True.
- url(name)[source]¶
Return an absolute URL where the file’s contents can be accessed directly by a web browser.