Skip to content

[path_provider] getDownloadsDirectory() doesn't work for iOS and Android. #93198

@curvednebula

Description

@curvednebula

Currently getDownloadsDirectory() has the following documentation:

/// Path to the directory where downloaded files can be stored.
/// This is typically only relevant on desktop operating systems.
///
/// On Android and on iOS, this function throws an [UnsupportedError] as no equivalent
/// path exists.

It isn't quite clear why this API can't return paths to iOS' and Android's Downloads folders? I think both has equivalent folders. Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilitygood first issueRelatively approachable for first-time contributorsp: path_providerPlugin that provides resolved paths to some platform directoriespackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyplatform-iosiOS applications specificallyr: fixedIssue is closed as already fixed in a newer versionteam-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions