[FFmpeg-user] How to preserve file time
Bouke / edit 'B
bouke at editb.nl
Sat Aug 17 23:56:23 EEST 2024
> On 17 Aug 2024, at 22:33, Ulf Zibis <Ulf.Zibis at CoSoCo.de> wrote:
>
>
> Am 17.08.24 um 22:10 schrieb Bouke / Videotoolshed:
>> ..., it will be ‘another’ file with the same name.
> And WHAT then happens with the original file, when write creates ANOTHER file ???
Do not misquote me, and do not remove important parts if you are quoting.
I wrote ‘another’ within quotes. Since you are either not smart or just unwilling to understand it, let me explain.
The FILE is the same, the CONTENT of the file will be different. (Where ‘file’ means file path / file name / file extension)
>> The user input is parsed as ‘if file exists and not -y in line, abort’
> Yes, and so we have 3 OS calls extra for that funtionality, 1st query for existence, 2nd output to out stream and 3rd read from in stream.
No, we have not. I wrote, ‘abort if exist’. There is one call for output existance. The rest is exactly the same. OS does not know nor care about overwrite. It just dumps data to where you want it.
Learn how to code yourself if you don’t believe the ones who do know.
>> Of course not. Save (and for some apps autosave) NEVER asks to overwrite, you would get stark raving mad if it did.
> If I open a GUI app, start typing a document and then press `save`and type a name of an existing file, it (hopefully) will ask me, if I'm willing to overwrite it. That's my experience.
This is called a ’save as’, since there is not yet a file, nor known file name. The coder who wrote the app is smarter than you, he anticipated that you do not know that you cannot do a ’save’ on a non-existing / unknown file, so he made it an automagically ’save as’ instead of ’save to oblivion’.
>
>> ’Save As’ however does ask, as you might want to destroy some work.
>
> And in this case anyway (hopefully).
>
> "You can spin ist as you want", in most cases I experience, the GUI app asks me.
>
> Sorry if you have other experience.
And I am VERY sorry that I have to agree with Harald.
Bouke
More information about the ffmpeg-user
mailing list