Class NoneFileSystemFactory
java.lang.Object
org.apache.sshd.common.file.nonefs.NoneFileSystemFactory
- All Implemented Interfaces:
FileSystemFactory
Provides an "empty" file system that has no files/folders and throws exceptions on any attempt to access a
file/folder on it
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFileSystem(SessionContext session) Create user specific file system.getUserHomeDir(SessionContext session)
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
NoneFileSystemFactory
public NoneFileSystemFactory()
-
-
Method Details
-
getUserHomeDir
- Specified by:
getUserHomeDirin interfaceFileSystemFactory- Parameters:
session- The session created for the user- Returns:
- The recommended user home directory -
nullif none - Throws:
IOException- If failed to resolve user's home directory
-
createFileSystem
Description copied from interface:FileSystemFactoryCreate user specific file system.- Specified by:
createFileSystemin interfaceFileSystemFactory- Parameters:
session- The session created for the user- Returns:
- The current
FileSystemfor the provided session - Throws:
IOException- if the file system can not be created
-