firebase / firebase/firebase-android-sdk

[firebase_storage] Check if a file exists without throwing exceptions

Open
#5,414 2 comments 8 reactions 0 assignees View on GitHub
api: storage type: feature request
Dominant language
Java
Stars
2.6k
Forks
710
Avg merge
2d 9h
Merged PRs (30d)
31

Description

## 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](https://github.com/firebase/flutterfire/issues/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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.