Check if a metadata exists
Hi,
In my java application I upload files to box and attach a metadata key- value to it.
And then I display all those files as per metadata value
But If I upload some file directly in my box account.
(Not programatically but manualy) which does not have metadata attribute
My code breaks down as this new file does not have attached metadata and metadata.get("key")
throws error.
How do I filter out files based on condition that 'A file has required metadata key-value pair attached'
Please sign in to leave a comment.
Comments
0 comments