python-egnyte icon indicating copy to clipboard operation
python-egnyte copied to clipboard

folder.create ignore_if_exists parameter is not respected

Open skamensky opened this issue 6 years ago • 2 comments

I haven't had time to dig into why, but when using

client.folder("/Shared/Temp/").create(ignore_if_exists=True) An AttributeError or egnyte.exc.RequestError is thrown if the folder exists already.

From a quick glimpse it looks like the error is caused by this line not properly checking if the error that should be ignored is present in the request result: https://github.com/egnyte/python-egnyte/blob/68815e9494d20fbc7d45bd7df43bc92dc43be13c/egnyte/exc.py#L174

skamensky avatar Jul 24 '19 23:07 skamensky

(Note: I am writing this as this package user - I am not its maintainer). Strange @skamensky - this does work for me.

gdubicki avatar Aug 27 '20 17:08 gdubicki

@gdubicki

I no longer have access to an Egnyte account so I can't test this :P.

Maybe it was fixed on the server side somehow!

skamensky avatar Aug 30 '20 05:08 skamensky