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

Path for files #51

Closed
harshangrjn opened this issue Jan 10, 2020 · 5 comments
Closed

Path for files #51

harshangrjn opened this issue Jan 10, 2020 · 5 comments

Comments

@harshangrjn
Copy link

Is there a way to specify a particular path, something like save(PDF("results/test"), tp) instead of saving in the default folder? Currently I get an error of this form: results/results: no such file or directory (ENOENT)

@mykelk
Copy link
Member

mykelk commented Jan 11, 2020

I think the directory has to exist. Does it in your case?

@harshangrjn
Copy link
Author

I do have the "results" directory. But it throws an error about a folder which I haven't asked to save the file in. That's why, I was surprised.

@mykelk
Copy link
Member

mykelk commented Jan 11, 2020

What's the output of ; pwd?

@harshangrjn
Copy link
Author

harshangrjn commented Jan 13, 2020

My current directory is ~/code, where the script to generate the pdf is contained. And I also have the ~/code/results folder.

@mykelk
Copy link
Member

mykelk commented Jan 14, 2020

It works for me:

image

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