wkentaro / gdown

Google Drive Public File Downloader when Curl/Wget Fails
MIT License
4.04k stars 343 forks source link

Feature: preserve GDrive's last modified time when downloading #351

Closed moulins closed 1 month ago

moulins commented 2 months ago

When downloading to the filesystem, retrieve the Last-Modified date from the HTTP headers and use it to set the on-disk mtime of the downloaded file.

I've implemented this unconditionally, but maybe this should be gated behind a --mtimes CLI (and python API) option?

wkentaro commented 1 month ago

This makes sense. Thanks!