Unit
ScSFTPUtils
type
TScSFTPFileOpenModeItem = (foRead, foWrite, foAppend, foCreate, foTrunc, foExcl, foText);
TScSFTPFileOpenModes = set of TScSFTPFileOpenModeItem;
Description
The TScSFTPFileOpenModeItem enumeration represents flags for the file opening.
Value | Meaning |
foRead | open the file for reading. |
foWrite | open the file for writing. If foRead is also specified, the file is opened for reading and writing. |
foAppend | force all writes to append data to the end of the file. |
foCreate | a new file will be created if one does not already exist (if foTrunc is specified, the new file will be truncated to zero length if it existed). |
foTrunc | forces an existing file with the same name to be truncated to zero length when creating a file by specifying foCreate. Causes the request to fail if the named file already exists. foCreate should also be specified if this flag is used. |
foText | indicates that the server should treat the file as text and convert it to the canonical newline convention in use (refer to TScSFTPServerProperties.Newline). When a file is opened with the FXF_TEXT flag, the offset field in both read and write functions is ignored. |
See also