Skip to content

Do not delete files? #1163

Open
Open
@dschwoerer

Description

@dschwoerer

In case reading of the input file fails (#1161), it would probably best to not write a BOUT.settings - as in this case the command line arguments are not read. I got lucky as BOUT.settings contains that the settings file is BOUT.settings, but the parser changes that to bout.settings, so BOUT.settings survived, but this is less then ideal that my settings file nearly got overwritten ...

From this experience, I have been wondering whether it would be worth to not overwrite text files in general?
I guess they should be sufficiently small that in most cases we don't care about the size. In that case the log and setting files etc should be safe from accidental deletion. Rather then overwriting move the old file to a numbered backup ...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions