Package org.apache.sshd.common.file
Interface FileSystemFactory
-
- All Known Implementing Classes:
NativeFileSystemFactory,NoneFileSystemFactory,VirtualFileSystemFactory
public interface FileSystemFactoryFactory for file system implementations - it returns the file system for user.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.nio.file.FileSystemcreateFileSystem(SessionContext session)Create user specific file system.java.nio.file.PathgetUserHomeDir(SessionContext session)
-
-
-
Method Detail
-
getUserHomeDir
java.nio.file.Path getUserHomeDir(SessionContext session) throws java.io.IOException
- Parameters:
session- The session created for the user- Returns:
- The recommended user home directory -
nullif none - Throws:
java.io.IOException- If failed to resolve user's home directory
-
createFileSystem
java.nio.file.FileSystem createFileSystem(SessionContext session) throws java.io.IOException
Create user specific file system.- Parameters:
session- The session created for the user- Returns:
- The current
FileSystemfor the provided session - Throws:
java.io.IOException- if the file system can not be created
-
-