firebase-android-sdk icon indicating copy to clipboard operation
firebase-android-sdk copied to clipboard

[firebase_storage] Check if a file exists without throwing exceptions

Open ghost opened this issue 2 years ago • 2 comments

What feature would you like to see?

Currently there is no function or method to cleanly check if a file exits in Firebase Storage.

This feature request is derived from Flutterfire issue 11620.

There are many ways that have been proposed to check if a file exists, which all consist on try-catch. This however results in the SDK throwing exception logs into the console.

How would you use it?

Have an exists async function in the Reference object which will return true or false depending on whether the file exists in Firebase Storage.

ghost avatar Oct 13 '23 11:10 ghost

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

google-oss-bot avatar Oct 13 '23 11:10 google-oss-bot

Hey it's been two years and there's still no clean way of checking if a file exists. Any updates?

CarloskHard avatar Mar 31 '25 19:03 CarloskHard