SftpFile MembersSSH .NET Client Library Documentation

The SftpFile type exposes the following members.
Methods

  NameDescription
Public methodDelete
Permanently deletes a file on remote machine.
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodOnlineFinalize
Allows an OnlineObject to attempt to free resources and perform other cleanup operations before the OnlineObject is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
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 OnlineString that represents this instance.
(Overrides OnlineObject ToString .)
Public methodUpdateStatus
Updates file status on the server.
Back to Top
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.
Back to Top
See Also