Top Description Methods
org.apache.sshd.common.file

public Interface FileSystemFactory

Known Direct Implementers
org.apache.sshd.common.file.nativefs.NativeFileSystemFactory, org.apache.sshd.common.file.nonefs.NoneFileSystemFactory, org.apache.sshd.common.file.virtualfs.VirtualFileSystemFactory
Imports
java.io.IOException, java.nio.file.FileSystem, .Path, org.apache.sshd.common.session.SessionContext

Factory for file system implementations - it returns the file system for user.
Author
Apache MINA Project

Method Summary

Modifier and TypeMethod and Description
public FileSystem

Returns:

The current FileSystem for the provided session
createFileSystem
(SessionContext
The session created for the user
session
)

Create user specific file system.

public Path

Returns:

The recommended user home directory - null if none
getUserHomeDir
(SessionContext
The session created for the user
session
)

Method Detail

createFileSystemback to summary
public FileSystem createFileSystem(SessionContext session) throws IOException

Create user specific file system.

Parameters
session:SessionContext

The session created for the user

Returns:FileSystem

The current FileSystem for the provided session

Exceptions
IOException:
if the file system can not be created
getUserHomeDirback to summary
public Path getUserHomeDir(SessionContext session) throws IOException
Parameters
session:SessionContext

The session created for the user

Returns:Path

The recommended user home directory - null if none

Exceptions
IOException:
If failed to resolve user's home directory