Alex Hoyau

Results 420 comments of Alex Hoyau

Same for writeFile, cf CloudExplorer2 router.js file, there is a comment about that

Great! It would cover my use case I'll see if I can do this soon

If we follow your philosophy we should also mimic nodejs API for errors https://nodejs.org/api/errors.html#errors_common_system_errors

With `fs`, when one try to delete a non-empty folder it throws this error: `"errno":-39,"code":"ENOTEMPTY","syscall":"rmdir","path":"/home/lexoyo/tmp/publish"` Should dropbox service do the same?

Or maybe fs should remove the folder recursively

Can you confirm @JbIPS that is missing for most connectors (all but github) * recursive delete like fs does * use [UnifileError and BatchError](https://github.com/silexlabs/unifile/blob/master/lib/error.js#L6) to throw errors (e.g. "path not...

> fs doesn't do that My bad Then I think we should not stick to fs for this behavior and make it recursive for every service, what do you think?...

Yes but I'm talking about files and folder in a branch, not branches

Here is what i do ![delete-folder](https://user-images.githubusercontent.com/715377/39173015-bd7342a8-47a3-11e8-97c9-1cc9babcc9b3.gif) And the HTTP calls ![screenshot from 2018-04-24 09-41-24](https://user-images.githubusercontent.com/715377/39173034-c9bccc96-47a3-11e8-9eed-82e1860de0aa.png)

I believe it is in getInfo in my case but it may be in all methods too?