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

Error when using paths containing tilde #151

Open
mzgubic opened this issue Apr 8, 2022 · 1 comment
Open

Error when using paths containing tilde #151

mzgubic opened this issue Apr 8, 2022 · 1 comment

Comments

@mzgubic
Copy link

mzgubic commented Apr 8, 2022

Doing

using DataDeps
output_path = "~/.julia/datadeps" 
filename = "something"
preupload_check("$filename", "$output_path/$filename.zip")

gives

ERROR: SystemError: opening file "~/.julia/datadeps/something.zip": No such file or directory

Even though the file exists at the specified location. The issue is that ~/ is quietly not getting resolved.

@oxinabox
Copy link
Owner

Probably needs a call to expanduser.
I don't think open supports ~.
but calling expanduser replaces that with path to homedir.
It is not clear to me as to if we should do that in preupload_check (for ease of use) or if we should be like open and require the user to do that before calling the function

@oxinabox oxinabox changed the title Use FilePathsBase to resolve paths Error when using paths containing tilde Apr 12, 2022
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