[Java]
int getSupportedOpenModes();
void setSupportedOpenModes(int Value);
Values:
[.NET]
[Pascal]
[C++]
Description
fmRead = 1
fmRead
f_fmRead = 1
Open file for reading
fmWrite = 2
fmWrite
f_fmWrite = 2
Open file for writing
fmAppend = 4
fmAppend
f_fmAppend = 4
Data is always written at the end of the file
fmCreate = 8
fmCreate
f_fmCreate = 8
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 andconverted 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 thatmultiple 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)
TSBSftpFileOpenModes values
[.NET][C++]
[Pascal]
[PHP]
Description
f_fmRead = 1
fmRead
fmRead = 1
...
f_fmWrite = 2
fmWrite
fmWrite = 2
...
f_fmAppend = 4
fmAppend
fmAppend = 4
...
f_sfmCreate = 8
sfmCreate
sfmCreate = 8
...
f_fmTruncate = 16
fmTruncate
fmTruncate = 16
...
f_fmExcl = 32
fmExcl
fmExcl = 32
...
f_fmText = 64
fmText
fmText = 64
...
f_fmOpenOrCreate = 128
fmOpenOrCreate
fmOpenOrCreate = 128
...
f_fmAppendAtomic = 256
fmAppendAtomic
fmAppendAtomic = 256
...
f_fmNoFollow = 512
fmNoFollow
fmNoFollow = 512
...
f_fmDeleteOnClose = 1024
fmDeleteOnClose
fmDeleteOnClose = 1024
...
Description
Use this property to specify supported file open modes.