5 entries
= sorted(os
.listdir(path
))
11 current_path
= os
.path
.join(path
, entry
)
12 if os
.path
.isdir(current_path
):
13 directories
.append(current_path
)
15 files
.append(current_path
)
16 return directories
, files
18 def get_files_by_extension(path
, extension
):
19 result
= get_list(path
)
22 directories
, files
= result
23 return filter(lambda path
: nil
.file.get_extension(path
) == extension
, files
)