generic/py-backend/fs_utils/list_dir.py
def _list_dir(directories):
    """
    Returns listing of directory content

    Keyword arguments:
    directories -- directories to list files
    """
    request_dirs = list(filter(exists, directories))
    root_path = commonpath(request_dirs)
    dir_content = [_extract_file_info(directory, root_path, file_name)
                   for directory in request_dirs
                   for file_name in listdir(directory)]
    tree_entries = [file_or_dir for file_or_dir in dir_content
                    if file_or_dir["is_dir"] or file_or_dir["is_file"]]
    sorted_files = sorted(tree_entries, key=cmp_to_key(_file_comparator))
    return [_extreact_qml_file_info(file) for file in sorted_files]

    Returns listing of directory content

    Keyword arguments:
    directories -- directories to list files
    
Returns listing of directory content
Keyword arguments:
directories -- directories to list files
Returns listing of directory content Keyword arguments : directories -- directories to list files
def _list_dir(directories):
    request_dirs = list(filter(exists, directories))
    root_path = commonpath(request_dirs)
    dir_content = [_extract_file_info(directory, root_path, file_name)
                   for directory in request_dirs
                   for file_name in listdir(directory)]
    tree_entries = [file_or_dir for file_or_dir in dir_content
                    if file_or_dir["is_dir"] or file_or_dir["is_file"]]
    sorted_files = sorted(tree_entries, key=cmp_to_key(_file_comparator))
    return [_extreact_qml_file_info(file) for file in sorted_files]
def _list_dir ( directories ) : request_dirs = list ( filter ( exists , directories ) ) root_path = commonpath ( request_dirs ) dir_content = [ _extract_file_info ( directory , root_path , file_name ) for directory in request_dirs for file_name in listdir ( directory ) ] tree_entries = [ file_or_dir for file_or_dir in dir_content if file_or_dir [ "is_dir" ] or file_or_dir [ "is_file" ] ] sorted_files = sorted ( tree_entries , key = cmp_to_key ( _file_comparator ) ) return [ _extreact_qml_file_info ( file ) for file in sorted_files ]
Returns listing of directory content
Keyword arguments:
directories -- directories to list files
Returns listing of directory content Keyword arguments : directories -- directories to list files
"""
    Returns listing of directory content

    Keyword arguments:
    directories -- directories to list files
    """
directories