#10497: Added 'stat' method to class Storage and FileSystemStorage
---------------------------------------------+------------------------------
Reporter: HuCy | Owner: nobody
Status: new | Milestone:
Component: Core framework | Version: 1.0
Resolution: | Keywords: storage
Stage: Design decision needed | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------------+------------------------------
Comment (by IanLewis):
Unfortunately none of the things like protection bits, inode no and other
disk related information. The data returned by os.stat also will be
different for different platforms. See
http://docs.python.org/library/os.html#os.stat
For instance on POSIX systems you won't be able to get the document
creation time since it's not included in the file system metadata. And you
can already get the modified time from the "modified" method.
I guess you could do something like add custom http headers to your files
in amazon S3 or your backend to implement the stat command but I don't
think it would really give you useful information.
--
Ticket URL: <http://code.djangoproject.com/ticket/10497#comment:4>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---