[Kget] [kget] [Bug 55511] KGET does not preserve timestamp of downloaded files from FTP

David E. Narvaez david.narvaez at computer.org
Tue Mar 19 20:46:05 UTC 2013


https://bugs.kde.org/show_bug.cgi?id=55511

David E. Narvaez <david.narvaez at computer.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |david.narvaez at computer.org

--- Comment #4 from David E. Narvaez <david.narvaez at computer.org> ---
(In reply to comment #3)
> Hey!
> 
> It seems fine to me, in case there is no other way to get this data from
> ftp, which would use the original get job...

Looked for that all night and found nothing; I'll take a look again today. That
may actually be a good addition for KIO, I'm not sure how easy it is to
implement with the current code though.

> Also, to remove the boost dependency we could use:
>         struct utimbuf time;
>         time.modtime = modTime.toTime_t();
>         time.actime = QDateTime::currentDateTime().toTime_t();
>         utime(file.toUtf8().data(), &time);

Heh, I actually tried to avoid the code above by using Boost (since it is
already used by qPGPMe). Anyhow, your call!

So for MultiSegmentKio, would this work? My concern is that all mirrors may not
have the same mtime, can that happen?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kget mailing list