This is an old revision of the document!

RemoteFileInfo Class

Represents data about remote file.

This feature will be available only with the next release.

Syntax

Namespace: WinSCP

Advertisement

public sealed class RemoteFileInfo

Properties

Name Description
bool IsDirectory Is file a directory? (i.e. Type is D). Read-only.
DateTime LastWriteTime Timestamp of the last file modification. Read-only.
long Length Size of the file in bytes. Read-only.
string Name File name (with Session.ListDirectory) or file path (with Session.GetFileInfo). Read-only.
Permissions Permissions File permissions. Read-only.
char Type File type. Space for regular file, D for directory, L for symlink, etc. Read-only. See also IsDirectory.

Methods

Name Description
string ToString() Returns Name. (Overrides Object.ToString().)

Remarks

Instance of the class can be created by the WinSCP assembly only. You can only get an instance of the class by calling Session.ListDirectory or Session.GetFileInfo.

Advertisement

Last modified: by martin