Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

SftpItem Constructor

Namespace: Rebex.Net
Assembly: Rebex.Sftp.dll (version 7.0.9147)

SftpItem(String, Int64, SftpItemType, Nullable<DateTime>, Nullable<DateTime>)

Initializes a new instance of the SftpItem class.

Declaration
public SftpItem(string filename, long size, SftpItemType type, DateTime? accessed, DateTime? modified)
Parameters
Type Name Description
String filename

The name of the file or directory.

Int64 size

The size of the file.

SftpItemType type

The type of item.

Nullable<DateTime> accessed

The Nullable<T> of last access.

Nullable<DateTime> modified

The Nullable<T> of last modification.

SftpItem(String, Int64, SftpItemType, Nullable<DateTime>, Nullable<DateTime>, Nullable<DateTime>)

Initializes a new instance of the SftpItem class.

Declaration
public SftpItem(string filename, long size, SftpItemType type, DateTime? accessed, DateTime? modified, DateTime? created)
Parameters
Type Name Description
String filename

The name of the file or directory.

Int64 size

The size of the file.

SftpItemType type

The type of item.

Nullable<DateTime> accessed

The Nullable<T> of last access.

Nullable<DateTime> modified

The Nullable<T> of last modification.

Nullable<DateTime> created

The Nullable<T> of item creation. Only supported for SFTP v4 servers!

SftpItem(String, String, Int64, SftpItemType, Nullable<DateTime>, Nullable<DateTime>, Nullable<DateTime>)

Initializes a new instance of the SftpItem class.

Declaration
public SftpItem(string path, string filename, long size, SftpItemType type, DateTime? accessed, DateTime? modified, DateTime? created)
Parameters
Type Name Description
String path

The path of the file or directory.

String filename

The name of the file or directory.

Int64 size

The size of the file.

SftpItemType type

The type of item.

Nullable<DateTime> accessed

The Nullable<T> of last access.

Nullable<DateTime> modified

The Nullable<T> of last modification.

Nullable<DateTime> created

The Nullable<T> of item creation. Only supported for SFTP v4 servers!

In This Article
  • SftpItem(String, Int64, SftpItemType, Nullable<DateTime>, Nullable<DateTime>)
  • SftpItem(String, Int64, SftpItemType, Nullable<DateTime>, Nullable<DateTime>, Nullable<DateTime>)
  • SftpItem(String, String, Int64, SftpItemType, Nullable<DateTime>, Nullable<DateTime>, Nullable<DateTime>)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies