-
Notifications
You must be signed in to change notification settings - Fork 1
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
fix(cli): expand sync path argument #16
base: main
Are you sure you want to change the base?
Conversation
I am currently on the phone. Is |
@mkroening I tested it, and it did expand |
@mkroening thanks for pointing this out, I developed this with Termux on Android, and it seems like it does some weird path things there, on my laptop it does in fact not expand |
Okay don't know what's happening on Termux. I'd propose the following solution:
Alternative: |
Your proposal sounds good. 👍 |
43bfefb
to
d86f217
Compare
I played around a little with paths like This is now a bit duplicate, as it should get canonicalized during the setup and the path gets canonicalized every invocation of sync, but didn't know if there was a simpler way to be sure the path won't break edu-sync somehow. |
Relative paths or paths containing '~' were interpreted as relative paths.
e.g.
sync = "~/edu-sync"
while you are in the directory~/Downloads/
would synchronize into~/Downloads/\~/edu-sync
or
sync = "."
would always sync into the current working directory.