pdfsam icon indicating copy to clipboard operation
pdfsam copied to clipboard

Preserve modified date of files

Open HektorStG opened this issue 2 years ago • 2 comments

Hello,

Created files are stamped with the current date.

Is it possible to have an option that proposes to preserve or not the modified date of the source file for created files. In the case of a list of files (merge tool, ...) the option could be to apply the modified date of the first file in the source files list, or of one file number in list.

Many thanks for the work. Hektor

HektorStG avatar Apr 27 '23 07:04 HektorStG

Hi, I'm not sure if it's doable, I have to investigate but first of all what is the use case? The output file is an actual new file, it seems normal to have a different creation date

torakiki avatar Apr 27 '23 07:04 torakiki

Hello,

In my case, I can use this fonctionality in archiving files.

Many times, it can be useful to extract some important pages of one doc, or to merge docs received by mail, and for filtering and searching questions it could be useful to have the modified date preserved. In this case, the "new" created files are closely related to source files, and it make sense to apply the same modified date.

For example, for this purpose, I wrote a personal add-on for Thunderbird, and I used a function named "setModificationTime" (javascript) to set a specific modification date to exported attachment files.

It is just a suggestion, but maybe it could be useful.

Regards. Hektor

HektorStG avatar Apr 27 '23 08:04 HektorStG