Skip to content

Get correct size for sparse file in android #170212

Open
@radha1990kumari

Description

@radha1990kumari

Use case

Wanted to get disk usage of any folder in android, .thumbdata4-* type file under .thumbnails folder in DCIM reports its size as 10 Gb, but in actuality it takes only 12 Mb of space. So, didn't find any native way for flutter to report actual disk utilization.

Proposal

Add blocks count as well (number of blocks assigned to file) in FileStat, so that user can calculate actual size as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterdependency: dart:ioIssue in 'dart:io' libraryfyi-frameworkFor the attention of Framework teamplatform-androidAndroid applications specificallyteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions