cancel
Showing results for 
Search instead for 
Did you mean: 

How to check if the file not found but the Directory Browser returns nothing

khanh_tran
New Contributor II

The Directory Browser returns nothing when the specific file name cannot be found. So, how can I check if the file is found in the next snap like Router. I tried some ways like: $ == null or .get but it doesn't work. Please help me overcome this.

Screenshot 2024-04-09 at 15.19.50.png

Screenshot 2024-04-09 at 15.18.54.png

Many thanks

1 ACCEPTED SOLUTION

Aleksandar_A
Contributor III

Hello @khanh_tran,

As a first step you should disable the Ignore empty result in the Directory Browser Snap, then you can check using the following expression:

$ == {}

For more details, please refer to the attached pipeline and let me know if this helps you!

Regards,

Aleksandar.

View solution in original post

3 REPLIES 3

Aleksandar_A
Contributor III

Hello @khanh_tran,

As a first step you should disable the Ignore empty result in the Directory Browser Snap, then you can check using the following expression:

$ == {}

For more details, please refer to the attached pipeline and let me know if this helps you!

Regards,

Aleksandar.

In your case, since you are using S3 Browser, the Ignore Empty Result property is under the Show Advanced Properties.

Many thanks, I can do that.