Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keep_local does not keep remote files locally #2844

Open
Hugovdberg opened this issue Apr 24, 2024 · 0 comments
Open

keep_local does not keep remote files locally #2844

Hugovdberg opened this issue Apr 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Hugovdberg
Copy link

Hugovdberg commented Apr 24, 2024

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

@Hugovdberg Hugovdberg added the bug Something isn't working label Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant