Forum Discussion

khanh_tran's avatar
khanh_tran
New Contributor III
2 years ago
Solved

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

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.

Many thanks

  • 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.

3 Replies

  • 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.

    • Aleksandar_A's avatar
      Aleksandar_A
      Contributor III

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