-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
download deletes folder when using a folder name in parameter output #198
Comments
I agree that downloading to |
Technically adding a |
That would break my workflow of using the shorter and clearer |
The function
download
assumes that the output parameter (of type string) is a file. When given a folder name as output parameter the whole folder is deleted which is unexpected.e.g.
download(url_to_file, ".")
removes the current directory. Compared to copy the expected behavior is to put the file into the directory like incp path_to_file/file.txt .
.The output parameter should be checked with
isdir
and in that case the a filename derived from the folder name should be used instead.The text was updated successfully, but these errors were encountered: