Package net.schmizz.sshj.xfer
Interface LocalSourceFile
- All Known Implementing Classes:
FileSystemFile,InMemorySourceFile
public interface LocalSourceFile
-
Method Summary
Modifier and TypeMethodDescriptionIterable<? extends LocalSourceFile> getChildren(LocalFileFilter filter) longReturns last access time for the underlying file.longReturns last access time for the underlying file.longgetName()intReturns the permissions for the underlying filebooleanbooleanisFile()boolean
-
Method Details
-
getName
String getName() -
getLength
long getLength() -
getInputStream
- Throws:
IOException
-
getPermissions
Returns the permissions for the underlying file- Returns:
- permissions e.g. 0644
- Throws:
IOException
-
isFile
boolean isFile() -
isDirectory
boolean isDirectory() -
getChildren
- Throws:
IOException
-
providesAtimeMtime
boolean providesAtimeMtime() -
getLastAccessTime
Returns last access time for the underlying file.- Returns:
- time in seconds since Unix epoch
- Throws:
IOException
-
getLastModifiedTime
Returns last access time for the underlying file.- Returns:
- time in seconds since Unix epoch
- Throws:
IOException
-