SomeAverageDev / cozy-downloader

5 stars 0 forks source link

Fix Node 0.10 compatibility #6

Closed clochix closed 8 years ago

clochix commented 8 years ago

Some Cozy users still use Node 0.10 where fs.accessSync doesn't exist. This fix should allow this users to use the application.

SomeAverageDev commented 8 years ago

Thanks clochix, I will change my code accordingly, I think there are errors in yours so I will reject the file as it is now, but don't worry, I took the code (like "fileExists(downloads[i].pathname, fs.F_OK)").

I think the same issue is present in self-hosting I modified this week end, I will also check it asap