I have a folder where i get thumbs.db always (its not seen even when hidden files are seen). I am having a scenario on checking the folder and select all files to upload in to some portal.
In normal cases, my code works fine. At very rare scenario - When there is no files in that folder, Selection wont work. I tried to put a condition on getting the folder( getfiles) length.size and if its 0 – skip the flow, if its >0 process the file upload.
But, when the bot checks that – IT goes to upload still (as the length size is returning 1 because of Thumbs.db file). Any suggestion on how to handle this situation? I can go for nested if to solve this, but i wanted to know the right way to handle this.