How to identify conflicted files through Box API (python)

Highlighted
Occasional Contributor

How to identify conflicted files through Box API (python)

Hi,

 

We're running into an issue where a conflicted file is created in a folder, but we don't know how to identify them.

 

For example: We have a file "a.txt" and "a (user).txt" where "a (user).txt" is the conflicted file automatically created by Box. Now when we use the API to access these files the API reads both of these files as a.txt and the 'user' part, that is used to indicate conflicts in the client on my desktop does not show up. How would we do about identifying the conflicted file through the Box Python API?

 

Thanks.

1 REPLY 1
Highlighted
Box Employee

Re: How to identify conflicted files through Box API (python)

Unfortunately there isn't anything directly within the APIs to determine if a file was generated from a conflict event from box.com. If a file is uploaded via the APIs and runs into a conflict, an error will be sent back to your code so that you can appropriately deal with it however you see fit, but to the APIs that's just a file once it's in the system. Beyond the naming convention we use for conflict files (what you noted) there won't be anything else that I'm aware of.

 

- Jon