I'd like to assign path to some file (let's say it's a log file) in a script tool as a parameter. This file may already exist (some information might have been written and I don't want to lose it) or may not (then I want to create it).
Now - if I set Direction to Input in Tool Properties -> Parameters - then it is only possible to point to existing file (it won't allow me to create a new name). If I set Direction to Output then I can create new file, but if I point to old one, it will automatically overwrite it (not what I want as I want to retain the contents of the file)

Is there any smart way to make the tool parameter to behave the way I want?