diff options
Diffstat (limited to 'docs/ref/files')
| -rw-r--r-- | docs/ref/files/storage.txt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/docs/ref/files/storage.txt b/docs/ref/files/storage.txt index 2b055bb60b..b27ea1556b 100644 --- a/docs/ref/files/storage.txt +++ b/docs/ref/files/storage.txt @@ -13,6 +13,33 @@ The local filesystem path where the file can be opened using Python's standard ``open()``. For storage systems that aren't accessible from the local filesystem, this will raise ``NotImplementedError`` instead. +``Storage.accessed_time(name)`` +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. versionadded:: 1.3 + +Returns a ``datetime`` object containing the last accessed time of the file. +For storage systems that aren't able to return the last accessed time, this +will raise ``NotImplementedError`` instead. + +``Storage.created_time(name)`` +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. versionadded:: 1.3 + +Returns a ``datetime`` object containing the creation time of the file. +For storage systems that aren't able to return the creation time, this +will raise ``NotImplementedError`` instead. + +``Storage.modified_time(name)`` +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. versionadded:: 1.3 + +Returns a ``datetime`` object containing the last modified time. For storage +systems that aren't able to return the last modified time, this will raise +``NotImplementedError`` instead. + ``Storage.size(name)`` ~~~~~~~~~~~~~~~~~~~~~~ |
