reana_workflow_controller/utils.py
def list_directory_files(directory):
    """Return a list of files inside a given directory."""
    fs_ = fs.open_fs(directory)
    file_list = []
    for file_name in fs_.walk.files():
        file_details = fs_.getinfo(file_name, namespaces=['details'])
        file_list.append({'name': file_name.lstrip('/'),
                          'last-modified': file_details.modified.
                          strftime(WORKFLOW_TIME_FORMAT),
                          'size': file_details.size})
    return file_list
Return a list of files inside a given directory.
Return a list of files inside a given directory.
Return a list of files inside a given directory .
def list_directory_files(directory):
    fs_ = fs.open_fs(directory)
    file_list = []
    for file_name in fs_.walk.files():
        file_details = fs_.getinfo(file_name, namespaces=['details'])
        file_list.append({'name': file_name.lstrip('/'),
                          'last-modified': file_details.modified.
                          strftime(WORKFLOW_TIME_FORMAT),
                          'size': file_details.size})
    return file_list
def list_directory_files ( directory ) : fs_ = fs . open_fs ( directory ) file_list = [ ] for file_name in fs_ . walk . files ( ) : file_details = fs_ . getinfo ( file_name , namespaces = [ 'details' ] ) file_list . append ( { 'name' : file_name . lstrip ( '/' ) , 'last-modified' : file_details . modified . strftime ( WORKFLOW_TIME_FORMAT ) , 'size' : file_details . size } ) return file_list
Return a list of files inside a given directory.
Return a list of files inside a given directory .
"""Return a list of files inside a given directory."""
directory