From 4678957b4efae23204d954ac912c77d7cf122f26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Thu, 6 Apr 2017 18:05:58 +0200 Subject: [PATCH] [1.11.x] Fixed #27644 -- Doc'd FileSystemStorage.get_created_time(). Backport of f3ac398dd595c43f551502c742b0b3cbe8440e50 from master --- docs/ref/files/storage.txt | 7 +++++++ docs/spelling_wordlist | 1 + 2 files changed, 8 insertions(+) diff --git a/docs/ref/files/storage.txt b/docs/ref/files/storage.txt index 0e8303c7af..78a6c31ab4 100644 --- a/docs/ref/files/storage.txt +++ b/docs/ref/files/storage.txt @@ -62,6 +62,13 @@ The ``FileSystemStorage`` class The ``FileSystemStorage.delete()`` method will not raise an exception if the given file name does not exist. + .. method:: get_created_time(name) + + Returns a :class:`~datetime.datetime` of the system's ctime, i.e. + :func:`os.path.getctime`. On some systems (like Unix), this is the + time of the last metadata change, and on others (like Windows), it's + the creation time of the file. + The ``Storage`` class ===================== diff --git a/docs/spelling_wordlist b/docs/spelling_wordlist index 303d4d3b7a..6de148cc9b 100644 --- a/docs/spelling_wordlist +++ b/docs/spelling_wordlist @@ -155,6 +155,7 @@ csrf csrfmiddlewaretoken css csv +ctime Ctrl customizability customizable