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

SftpItem Class

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

Contains information about a single file or directory on the SFTP server.

Syntax
public class SftpItem : FileSystemItem
Inheritance
Object
FileSystemItem
SftpItem
Inherited Members
FileSystemItem.CreationTime
FileSystemItem.LastAccessTime
FileSystemItem.LastWriteTime
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)

Constructors

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

Initializes a new instance of the SftpItem class.

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

Initializes a new instance of the SftpItem class.

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

Initializes a new instance of the SftpItem class.

Properties

Name Description
CreationTime

Gets the creation time of the item. Inherited from FileSystemItem.

Group

Gets the group of the file. Contains the group name on SFTP v4 servers and group ID on SFTP v3 servers.

GroupId

Gets the group ID of the file. Only available on SFTP v3 servers.

IsDirectory

Gets the flag indicating whether the item might be a directory.

IsFile

Gets the flag indicating whether the item might be a file.

IsLink

Gets a value indicating whether the item is a link.

LastAccessTime

Gets the last access time of the item. Inherited from FileSystemItem.

LastWriteTime

Gets the last modification time of the item. Inherited from FileSystemItem.

Length

Gets the file length.

Name

Gets the name of the file or directory.

Owner

Gets the owner of the file. Contains the owner name on SFTP v4 servers and owner ID on SFTP v3 servers.

OwnerId

Gets the owner ID of the file. Only available on SFTP v3 servers.

Path

Gets the path of the file or directory.

Permissions

Gets the Unix/SFTP permissions.

Type

Gets the type of the item.

Methods

Name Description
GetCreationTime()

Gets the creation time of the item.

GetLastAccessTime()

Gets the last access time of the item.

GetLastWriteTime()

Gets the last modification time of the item.

ToString()

Returns the name of the item.

In This Article
  • Constructors
  • Properties
  • Methods
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies