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
- Direct Known Subclasses:
SftpPathImpl
public class SftpPath extends BasePath<SftpPath,SftpFileSystem>
APath
on 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.Attributes
getAttributes()
Retrieves the cachedSftpClient.Attributes
of thisSftpPath
, if it has any.SftpPath
toRealPath(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()
Retrieves the cachedSftpClient.Attributes
of thisSftpPath
, if it has any.- Returns:
- the cached
SftpClient.Attributes
ornull
if there are none cached
-
toRealPath
public SftpPath toRealPath(java.nio.file.LinkOption... options) throws java.io.IOException
- Throws:
java.io.IOException
-
-