procedure DefaultOpenFile(SFTPSessionInfo: TScSFTPSessionInfo; const FileName: string; const OpenAttributes: TScSFTPFileOpenAttributes; out Data: TObject; var Error: TScSFTPError); virtual;

 

Description

Call the DefaultOpenFile method to open or create a file.

The obtained Data object may be used in other methods, for example, in DefaultReadFile, DefaultWriteFile, DefaultCloseFile.

 

Parameters:

SFTPSessionInfo - contains the information about the current SFTP session.
FileName - the name of the file that is being opened. If FileName is the name of a directory, an error will be raised.
OpenAttributes - contains attributes for the file opening.
Data - returns the information about an opened file as the TScHandle object.
Error - returns the information about an error that can arise when opening a file.

 

See also

OnOpenFile

SecureBridge Components, Copyright © 2007-2024 Devart. All Rights Reserved. Provide Feedback Visit Forum Request Support