Package org.apache.sshd.common.file
Interface FileSystemFactory
- All Known Implementing Classes:
NativeFileSystemFactory
,NoneFileSystemFactory
,VirtualFileSystemFactory
public interface FileSystemFactory
Factory for file system implementations - it returns the file system for user.
-
Method Summary
Modifier and TypeMethodDescriptioncreateFileSystem
(SessionContext session) Create user specific file system.getUserHomeDir
(SessionContext session)
-
Method Details
-
getUserHomeDir
- Parameters:
session
- The session created for the user- Returns:
- The recommended user home directory -
null
if none - Throws:
IOException
- If failed to resolve user's home directory
-
createFileSystem
Create user specific file system.- Parameters:
session
- The session created for the user- Returns:
- The current
FileSystem
for the provided session - Throws:
IOException
- if the file system can not be created
-