harababurel/gcsf

Report the real file size of exportable Drive documents

Open

#6 opened on Jun 27, 2018

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Rust (94 forks)user submission
enhancementhelp wanted

Repository metrics

Stars
 (2,378 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

File size is not a well defined concept for special Drive documents (Docs, Sheets, Slides) because it depends on the export format. For such documents, GCSF should report the corresponding file size they would have when exported with the default MIME type.

One way of achieving this is by exporting each document at mount time in order to obtain its real size. This is incredibly slow. For the moment, GCSF reports the maximum file size (10 MB) for all special documents.

Contributor guide