ADO.NET Provider for SFTP

Build 25.0.9434

Root

Represents the root directory on the remote SFTP server. This table is always available, and additional directory tables are discovered dynamically based on the TableDepth connection property.

テーブル固有の情報

Select

ディレクトリ内のすべてのファイルとディレクトリを取得します。

SELECT * FROM Root

Insert

サーバーにファイルをアップロードするには、LocalFile およびFilename を指定する必要があります。

INSERT INTO Root (Localfile, Filename) VALUES ('D:\\\\ShareFolder\\\\Notes.txt', 'NewNotes.txt')

サーバー上に新しいディレクトリを作成するには、Filename を指定してIsDirectory をTrue に設定する必要があります。

INSERT INTO Root (Filename, IsDirectory) VALUES ('New Directory', true)

Update

ファイルの名前のみ更新できます。WHERE 句でFilePath を指定する必要があります。

UPDATE Root SET Filename = 'OldNotes.txt' WHERE FilePath = '/Documents/Test/NewNotes.txt'

Delete

FilePath を指定して、ファイルを削除します。

DELETE FROM Root WHERE FilePath = '/Documents/Test/OldNotes.txt'

FilePath を指定し、IsDirectory をTrue に設定してディレクトリを削除します。

DELETE FROM Root WHERE FilePath = '/Documents/Test' AND IsDirectory = true

Columns

Name Type ReadOnly Description
FilePath [KEY] String True

The full path to the current file or directory on the FTP/SFTP server.

Filename String False

The name of the file or directory at the specified path.

FileSize Long True

The size of the file in bytes; for directories, this value is always 0.

LastModified Datetime True

The timestamp of the most recent modification to the file or directory.

IsDirectory Boolean True

Specifies whether the entry represents a directory (true) or a file (false).

LocalFile String True

The local file path used when uploading to the FTP/SFTP server; applicable only in insert operations.

Permissions String True

The permission string that defines read, write, and execute rights for the file or directory.

Owner String True

The username of the account that owns the file or directory.

OwnerId String True

The system-assigned identifier for the owner of the file or directory.

Group String True

The group name associated with the file or directory.

GroupId String True

The system-assigned identifier for the group associated with the file or directory.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434