Closed jfthuong closed 3 years ago
Note: actually Path.ls
will support following types (file_type
):
{'text', 'audio', 'video', 'Application', 'image', 'message', 'application'}
Alternative:
DataFrame
instead with different fields:
{'text', 'audio', 'video', 'Application', 'image', 'message', 'application'}
for higher level or full mime type like 'image/png', 'image/gif'
2.3 MB
)
fastai
provides a methodls
in the enhancedPath
.We could have a separate
ls
function that would work outside of this Path.Actually, the prototype of the function is:
But as usual, the help of
fastai
is very esoteric and we don't know what isfile_type
orfile_exts
:Moreover, the function is not imported when you do
import *
but it's rather attached toPath
.Hence the idea to have a dedicated simpler function with following prototype:
Does that sound useful, @raynardj ?