Class SftpFile

java.lang.Object
com.sshtools.client.sftp.SftpFile

public final class SftpFile extends Object
Represents an SFTP file object.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the attributes for this file as they were when this file object was obtained.
    Set the given attributes on the remote file represented by this SftpFile.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    void
    Delete this file/directory from the remote server.
    boolean
     
    Get the absolute path
    Deprecated, for removal: This API element is subject to removal in a future version. 
    Get the filename.
    The longname supplied by the server.
    Get the parent of the current file.
    Deprecated, for removal: This API element is subject to removal in a future version. 
    Get the SFTP subsystem channel that created this file object.
    handle(byte[] handle)
    Create a new handle for this file given the handle data.
    int
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    boolean
    Determine whether the file object is a symbolic link.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Refresh the SftpFileAttributes from the the remote file.
    void
    setProperty(String key, Object value)
    Deprecated, for removal: This API element is subject to removal in a future version. 
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait