New file is created; if the file already exists, operation will fail
fmTruncate = 16
fmTruncate
f_fmTruncate = 16
A new file is created; if the file already exists, it is opened and truncated
fmExcl = 32
fmExcl
f_fmExcl = 32
Specifies exclusive file opening mode.
In this mode only one thread is allowed to access the file at a time,
and if another process will try to open the file, an exception will be raised
fmText = 64
fmText
f_fmText = 64
Indicates that the file will be opened as text and
converted to the canonical newline convention in use
fmOpenOrCreate = 128
fmOpenOrCreate
f_fmOpenOrCreate = 128
If the file exists, it will be opened.
If the file does not exist, it will be created
fmAppendAtomic = 256
fmAppendAtomic
f_fmAppendAtomic = 256
Data will be always written at the end of the file,
and data will be written atomically so that there is no chance that
multiple appenders can collide and result in data being lost
fmNoFollow = 512
fmNoFollow
f_fmNoFollow = 256
If the final component of the path is a symlink, then the open will fail
fmDeleteOnClose = 1024
fmDeleteOnClose
f_fmDeleteOnClose = 1024
The file will be deleted when the last handle to it is closed.
(The last handle may not be an sftp-handle)