application.py
def available_files():
    """
    Returns a JSON object of the files available to download
    :return:
    """
    s3_files = {}
    s3_enabled = all(map(lambda ev: os.environ.get(ev) is not None,
                   ['S3_BUCKET', 'AWS_ACCESS_KEY_ID', 'AWS_SECRET_ACCESS_KEY']))

    if s3_enabled:
        s3_files = list_files_in_s3_bucket()

    local_files = uploaded_files_on_local_fs()

    local_files.update(s3_files)
    return flask.jsonify(local_files)

    Returns a JSON object of the files available to download
    :return:
    
Returns a JSON object of the files available to download
Returns a JSON object of the files available to download
def available_files():
    s3_files = {}
    s3_enabled = all(map(lambda ev: os.environ.get(ev) is not None,
                   ['S3_BUCKET', 'AWS_ACCESS_KEY_ID', 'AWS_SECRET_ACCESS_KEY']))
    if s3_enabled:
        s3_files = list_files_in_s3_bucket()
    local_files = uploaded_files_on_local_fs()
    local_files.update(s3_files)
    return flask.jsonify(local_files)
def available_files ( ) : s3_files = { } s3_enabled = all ( map ( lambda ev : os . environ . get ( ev ) is not None , [ 'S3_BUCKET' , 'AWS_ACCESS_KEY_ID' , 'AWS_SECRET_ACCESS_KEY' ] ) ) if s3_enabled : s3_files = list_files_in_s3_bucket ( ) local_files = uploaded_files_on_local_fs ( ) local_files . update ( s3_files ) return flask . jsonify ( local_files )
Returns a JSON object of the files available to download
Returns a JSON object of the files available to download
"""
    Returns a JSON object of the files available to download
    :return:
    """
None