Class SftpPathImpl

java.lang.Object
org.apache.sshd.common.file.util.BasePath<SftpPath,SftpFileSystem>
org.apache.sshd.sftp.client.fs.SftpPath
org.apache.sshd.sftp.client.impl.SftpPathImpl
All Implemented Interfaces:
Comparable<Path>, Iterable<Path>, Path, Watchable, WithFileAttributeCache, WithFileAttributes

public class SftpPathImpl extends SftpPath implements WithFileAttributeCache
An SftpPath that can cache SftpClient.Attributes.
  • Field Summary

    Fields inherited from class org.apache.sshd.common.file.util.BasePath

    names, root
  • Constructor Summary

    Constructors
    Constructor
    Description
    SftpPathImpl(SftpFileSystem fileSystem, String root, List<String> names)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    cacheAttributes(boolean doCache)
    SftpPath instances can cache SFTP SftpClient.Attributes.
    Retrieves the SftpClient.Attributes of this object, if it has any.
    void
    Sets the attributes.
    <T> T
    withAttributeCache(org.apache.sshd.common.util.io.functors.IOFunction<Path,T> operation)
    Performs the given operation with attribute caching.

    Methods inherited from class org.apache.sshd.sftp.client.fs.SftpPath

    toRealPath

    Methods inherited from class org.apache.sshd.common.file.util.BasePath

    asString, asT, calculatedHashCode, checkPath, compare, compareTo, create, create, create, endsWith, endsWith, endsWith, equals, getFileName, getFileSystem, getName, getNameCount, getParent, getRoot, hashCode, isAbsolute, isNormal, iterator, normalize, register, register, relativize, resolve, resolve, resolveSibling, resolveSibling, startsWith, startsWith, startsWith, subpath, toAbsolutePath, toFile, toString, toUri

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator