kevva / download

Download and extract files
MIT License
1.28k stars 200 forks source link

Error: EACCES #71

Closed artem-malko closed 9 years ago

artem-malko commented 9 years ago

Error: EACCES, open '/Users/a.malko/Sites/tars/tars--new-master/.tmpTemplater/tars-handlebars-master/.gitignore

I downloaded some code from github without any options, except one:

new Download({ extract: true })

If I call it with sudo — it works fine, but it's not cool.

floatdrop commented 9 years ago

@artem-malko seems like you have done something under sudo, how about chown -R /Users/a.malko a.malko?

artem-malko commented 9 years ago

@floatdrop I've made it. But:

~/Sites/tars/tars--new-master/.tmpTemplater master *= $ ls -ll
total 0
d---------  2 a.malko  1673768055  68 Jul 21 22:18 tars-handlebars-master
~/Sites/tars/tars--new-master/.tmpTemplater master *= $

tars-handlebars-master — it is a folder, which is been downloaded by "download".

artem-malko commented 9 years ago

@floatdrop I've fixed it. Just use { mode: '755' } and everything will be ok)

floatdrop commented 9 years ago

@kevva should 755 be default value of mode?

artem-malko commented 9 years ago

@floatdrop +1