-
-
Notifications
You must be signed in to change notification settings - Fork 174
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
IUnixFileSystemdepending 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
FtpServerconstructor
- The
IUnixFileSystemEntryis the base for both file and directory entries - The implementation of
IUnixFileEntryshould inherit from yourIUnixFileSystemEntryimplementation - The implementation of
IUnixDirectoryEntryshould inherit from yourIUnixFileSystemEntryimplementation - When you don't support access permissions, you should use
GenericUnixPermissionstogether withGenericAccessMode(for user, group, other) withrwxfor directories andrwfor files