Skip to content

keep_local does not keep remote files locally #2844

@Hugovdberg

Description

@Hugovdberg

Snakemake version

8.10.8

Describe the bug

Local copies of remote files are deleted after a rule finishes, even when keep_local is True. If I provide keep_local on the provider level the .snakemake/storage folder is deleted entirely. If I provide the option on the file level then the entire folder structure is kept in place, but the files are still removed.

Logs

Minimal example

storage http:
    provider="http",
    keep_local=True, # provider level

rule:
    input:
        storage.http('http://www.wettelijkerente.net/wettelijkerente2.csv', keep_local=True) # file level
    output:
        'results/output.txt'
    run:
        import shutil
        shutil.copy(input[0], output[0])

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions