Click or drag to resize

SftpFile Class

Represents SFTP file information
Inheritance Hierarchy
SystemObject
  Crestron.SimplSharp.Ssh.SftpSftpFile

Namespace: Crestron.SimplSharp.Ssh.Sftp
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public class SftpFile

The SftpFile type exposes the following members.

Properties
 NameDescription
Public propertyAttributes Gets the file attributes.
Public propertyExtensions Gets the extension part of the file.
Public propertyFullName Gets the full path of the directory or file.
Public propertyGroupCanExecute Gets or sets a value indicating whether the group members can execute this file.
Public propertyGroupCanRead Gets or sets a value indicating whether the group members can read from this file.
Public propertyGroupCanWrite Gets or sets a value indicating whether the group members can write into this file.
Public propertyGroupId Gets or sets file group id.
Public propertyIsBlockDevice Gets a value indicating whether file represents a block device.
Public propertyIsCharacterDevice Gets a value indicating whether file represents a character device.
Public propertyIsDirectory Gets a value indicating whether file represents a directory.
Public propertyIsNamedPipe Gets a value indicating whether file represents a named pipe.
Public propertyIsRegularFile Gets a value indicating whether file represents a regular file.
Public propertyIsSocket Gets a value indicating whether file represents a socket.
Public propertyIsSymbolicLink Gets a value indicating whether file represents a symbolic link.
Public propertyLastAccessTime Gets or sets the time the current file or directory was last accessed.
Public propertyLastAccessTimeUtc Gets or sets the time, in coordinated universal time (UTC), the current file or directory was last accessed.
Public propertyLastWriteTime Gets or sets the time when the current file or directory was last written to.
Public propertyLastWriteTimeUtc Gets or sets the time, in coordinated universal time (UTC), when the current file or directory was last written to.
Public propertyLength Gets or sets the size, in bytes, of the current file.
Public propertyName For files, gets the name of the file. For directories, gets the name of the last directory in the hierarchy if a hierarchy exists. Otherwise, the Name property gets the name of the directory.
Public propertyOthersCanExecute Gets or sets a value indicating whether the others can execute this file.
Public propertyOthersCanRead Gets or sets a value indicating whether the others can read from this file.
Public propertyOthersCanWrite Gets or sets a value indicating whether the others can write into this file.
Public propertyOwnerCanExecute Gets or sets a value indicating whether the owner can execute this file.
Public propertyOwnerCanRead Gets or sets a value indicating whether the owner can read from this file.
Public propertyOwnerCanWrite Gets or sets a value indicating whether the owner can write into this file.
Public propertyUserId Gets or sets file user id.
Top
Methods
 NameDescription
Public methodDelete Permanently deletes a file on remote machine.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodMoveTo Moves a specified file to a new location on remote machine, providing the option to specify a new file name.
Public methodSetPermissions Sets file permissions.
Public methodToString Returns a String that represents this instance.
(Overrides ObjectToString)
Public methodUpdateStatus Updates file status on the server.
Top

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also