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

Nested prefix path created when using download_from_datastore #396

Open
nwstephens opened this issue Oct 15, 2020 · 0 comments
Open

Nested prefix path created when using download_from_datastore #396

nwstephens opened this issue Oct 15, 2020 · 0 comments
Assignees

Comments

@nwstephens
Copy link

I want to download a specific directory from my datastore into my target_path. When I set the datastore, target_path and prefix arguments in download_from_datastore, I expect the contents of that specific directory to land in the target path. Instead, the prefix path lands in my target path as nested subdirectories. I then have to manually move the files up the hierarchy and into my target path. I would not expect to have the files land in my target directory instead of having to move them out of the nested prefix path.

download_from_datastore(
datastore = "mydatastore",
target_path = "~",
prefix = "sub1/sub2",
overwrite = FALSE,
show_progress = TRUE
)
dir("~")
[1] "sub1"

In the example above, all the files in the prefix path sub1/sub2 land in ~/sub1/sub2/. I would expect the files to land in ~/, instead of under a nested prefix path.

@diondrapeck diondrapeck self-assigned this Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants