Django Storage.listdir() definition

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Django Storage.listdir() definition

yuriy-2
Hi,

I have a question on Storage.listdir()
https://docs.djangoproject.com/en/2.0/_modules/django/core/files/storage/#Storage.listdir

It's interface definition says:

List the contents of the specified path. Return a 2-tuple of lists: the first item being directories, the second item being files.

Question that I have is the following.
Shall it return absolute paths or just local names under listed directory?
What was meant here? 


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3a3bb0d2-7a8c-4e6a-bad1-3e5a0c699cbd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.