-
-
Notifications
You must be signed in to change notification settings - Fork 163
How to develop your own file system backend
Mark Junker edited this page May 17, 2016
·
1 revision
- Implement
IFileSystemClassFactory
- This allows a custom instantiation of a
IUnixFileSystem
depending on the user credentials
- This allows a custom instantiation of a
- Implement
IUnixFileSystem
- Everything that's not supported by your backend should throw an exception
- When a specific command isn't supported, then you should provide the supported command handlers to the
FtpServer
constructor
- The
IUnixFileSystemEntry
is the base for both file and directory entries - The implementation of
IUnixFileEntry
should inherit from yourIUnixFileSystemEntry
implementation - The implementation of
IUnixDirectoryEntry
should inherit from yourIUnixFileSystemEntry
implementation - When you don't support access permissions, you should use
GenericUnixPermissions
together withGenericAccessMode
(for user, group, other) withrwx
for directories andrw
for files