Package org.apache.sshd.sftp.client.fs
Class SftpPath
- java.lang.Object
-
- org.apache.sshd.common.file.util.BasePath<SftpPath,SftpFileSystem>
-
- org.apache.sshd.sftp.client.fs.SftpPath
-
- All Implemented Interfaces:
java.lang.Comparable<java.nio.file.Path>,java.lang.Iterable<java.nio.file.Path>,java.nio.file.Path,java.nio.file.Watchable,WithFileAttributes
- Direct Known Subclasses:
SftpPathImpl
public class SftpPath extends BasePath<SftpPath,SftpFileSystem> implements WithFileAttributes
APathon anSftpFileSystem.
-
-
Constructor Summary
Constructors Constructor Description SftpPath(SftpFileSystem fileSystem, java.lang.String root, java.util.List<java.lang.String> names)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SftpClient.AttributesgetAttributes()Retrieves theSftpClient.Attributesof this object, if it has any.SftpPathtoRealPath(java.nio.file.LinkOption... options)-
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
-
-
-
-
Constructor Detail
-
SftpPath
public SftpPath(SftpFileSystem fileSystem, java.lang.String root, java.util.List<java.lang.String> names)
-
-
Method Detail
-
getAttributes
public SftpClient.Attributes getAttributes()
Description copied from interface:WithFileAttributesRetrieves theSftpClient.Attributesof this object, if it has any.- Specified by:
getAttributesin interfaceWithFileAttributes- Returns:
- the
SftpClient.Attributesornullif there are none
-
toRealPath
public SftpPath toRealPath(java.nio.file.LinkOption... options) throws java.io.IOException
- Specified by:
toRealPathin interfacejava.nio.file.Path- Throws:
java.io.IOException
-
-