gdrive-copy icon indicating copy to clipboard operation
gdrive-copy copied to clipboard

Size of each file and total size of the folder to be copied.

Open vaccarieli opened this issue 5 years ago • 7 comments

Are you requesting a feature or reporting a bug?

A feature.

What kind feature would you like?

To have the size of each file written in the spreadsheet and once selected the folder to be copied show the total size of it.

vaccarieli avatar Feb 17 '19 16:02 vaccarieli

I'm pretty confident this isn't exposed through the API, but I'll dig around and see if this would be an easy addition.

I'm not inclined to write a special method to calculate this, so if it isn't available from the API this will probably not be done

ericyd avatar Feb 17 '19 18:02 ericyd

Thanks for your response, I just submitted an issue regarding the lack of this feature, I wish I know more to be more supportive.

vaccarieli avatar Feb 17 '19 18:02 vaccarieli

Looks like the Drive API does return this data, e.g.

   "fileSize": "1006084",
   "quotaBytesUsed": "1006084",

Native Google types don't take up space, but it seems this is returned for all other file types. I'll work on getting this implemented, should be pretty straitforward

ericyd avatar Feb 18 '19 01:02 ericyd

Alright, do u have a discord ? I like your job seems pretty good.

vaccarieli avatar Feb 18 '19 01:02 vaccarieli

No, I had to google discord just now :joy:, never heard of it before

ericyd avatar Feb 18 '19 01:02 ericyd

No worries I'll look forward to see the update, thanks man. :)

vaccarieli avatar Feb 18 '19 01:02 vaccarieli

This is partially done with #84 . I added logging for file size when it exists.

I am going to be working on a larger update to track the overall size of the copy to address #85 too.

ericyd avatar Mar 03 '19 00:03 ericyd