scarvalhojr / aoc-cli

Advent of Code command-line tool
MIT License
249 stars 17 forks source link

Error: Failed to create file: Access is denied. (os error 5) #2

Closed joshdbennett closed 2 years ago

joshdbennett commented 2 years ago

(base) PS C:\DATA\Git\azuredevops\adventofcode> aoc download --year 2015 --day 1 --file C:\Users\jbennett010\aoc\2015\1\input Loaded session cookie from "C:\Users\jbennett010.adventofcode.session". Downloading input for day 1, 2015... Saving puzzle input to "C:\Users\jbennett010\aoc\2015\1\input"... Error: Failed to create file: Access is denied. (os error 5)

scarvalhojr commented 2 years ago

Check that the directory you're trying to write to exists and that you you have write permissions on it.

You can check if this works:

echo hello > C:\Users\jbennett010\aoc\2015\1\input
scarvalhojr commented 2 years ago

Closing this for now. Let me know if you're still having issues.