-
Notifications
You must be signed in to change notification settings - Fork 1
Ftp Server MS SQL File System Implementation
A Microsoft SQL File System for use with Fubar Development's Portable FTP Server.
See sample project here:
- MsSqlDirectoryEntry
- MsSqlFileEntry
-
MsSqlFileSystem
- #ctor(rootPath,allowNonEmptyDirectoryDelete)
- #ctor(rootPath,allowNonEmptyDirectoryDelete,streamBufferSize)
- DefaultStreamBufferSize
- FileSystemEntryComparer
- Root
- SupportsAppend
- SupportsNonEmptyDirectoryDelete
- AppendAsync()
- CreateAsync()
- CreateDirectoryAsync()
- Dispose()
- GetEntriesAsync()
- GetEntryByNameAsync()
- MoveAsync()
- OpenReadAsync()
- ReplaceAsync()
- SetMacTimeAsync(entry,modify,access,create,cancellationToken)
- UnlinkAsync()
- MsSqlFileSystemOptions
- MsSqlFileSystemProvider
- MsSqlFtpServerBuilderExtensions
FtpServer.MsSqlFileSystem
A IUnixDirectoryEntry implementation for MsSqlFileSystem functionality.
Initializes a new instance of the MsSqlDirectoryEntry class.
| Name | Type | Description |
|---|---|---|
| fileSystem | FtpServer.MsSqlFileSystem.MsSqlFileSystem | The file system this entry belongs to. |
| dirInfo | Sql.IO.SqlDirectoryInfo | The SqlDirectoryInfo to extract the information from. |
Inherit from parent.
Inherit from parent.
Inherit from parent.
Gets the underlying SqlDirectoryInfo.
Inherit from parent.
Inherit from parent.
Inherit from parent.
Inherit from parent.
Inherit from parent.
Inherit from parent.
Inherit from parent.
FtpServer.MsSqlFileSystem
A IUnixFileEntry implementation for MsSqlFileSystem functionality.
Initializes a new instance of the MsSqlFileEntry class.
| Name | Type | Description |
|---|---|---|
| fileSystem | FtpServer.MsSqlFileSystem.MsSqlFileSystem | The MsSqlFileEntry this entry belongs to. |
| info | Sql.IO.SqlFileInfo | The SqlFileInfo to extract the information from. |
Inherit from parent.
Inherit from parent.
Inherit from parent.
Gets the underlying SqlFileInfo.
Inherit from parent.
Inherit from parent.
Inherit from parent.
Inherit from parent.
Inherit from parent.
Inherit from parent.
FtpServer.MsSqlFileSystem
A IUnixFileSystem implementation that uses the MS SQL FileTables and FileStreams to provide file system functionality.
Initializes a new instance of the MsSqlFileSystem class.
| Name | Type | Description |
|---|---|---|
| rootPath | System.String | The path to use as root. |
| allowNonEmptyDirectoryDelete | System.Boolean | Defines whether the deletion of non-empty directories is allowed. |
Initializes a new instance of the MsSqlFileSystem class.
| Name | Type | Description |
|---|---|---|
| rootPath | System.String | The path to use as root. |
| allowNonEmptyDirectoryDelete | System.Boolean | Defines whether the deletion of non-empty directories is allowed. |
| streamBufferSize | System.Int32 | Buffer size to be used in async IO methods. |
The default buffer size for copying from one stream to another.
Inherit from parent.
Inherit from parent.
Inherit from parent.
Inherit from parent.
Inherit from parent.
This method has no parameters.
Inherit from parent.
This method has no parameters.
Inherit from parent.
This method has no parameters.
Disposes the current instance of the MsSqlFileSystem.
This method has no parameters.
Inherit from parent.
This method has no parameters.
Inherit from parent.
This method has no parameters.
Inherit from parent.
This method has no parameters.
Inherit from parent.
This method has no parameters.
Inherit from parent.
This method has no parameters.
Sets the modify/access/create timestamp of a file system item.
The modified IUnixFileSystemEntry.
| Name | Type | Description |
|---|---|---|
| entry | FubarDev.FtpServer.FileSystem.IUnixFileSystemEntry | The IUnixFileSystemEntry to change the timestamp for. |
| modify | System.Nullable{System.DateTimeOffset} | The modification timestamp. |
| access | System.Nullable{System.DateTimeOffset} | The access timestamp. |
| create | System.Nullable{System.DateTimeOffset} | The creation timestamp. |
| cancellationToken | System.Threading.CancellationToken | The cancellation token. |
Inherit from parent.
This method has no parameters.
FtpServer.MsSqlFileSystem
Options for MsSqlFileSystem based file system access.
Gets or sets a value indicating whether deletion of non-empty directories is allowed.
Gets or sets the root path for all users.
Gets or sets the buffer size to be used in async IO methods.
Gets or sets a value indicating whether the user ID should be used as sub directory.
FtpServer.MsSqlFileSystem
A IFileSystemClassFactory factory implementation to MsSqlFileSystem functionality for file system access.
Initializes a new instance of the MsSqlFileSystemProvider class.
| Name | Type | Description |
|---|---|---|
| options | Microsoft.Extensions.Options.IOptions{FtpServer.MsSqlFileSystem.MsSqlFileSystemOptions} | The file system options. |
Returns a new MsSqlFileSystem instance implementation of the IUnixFileSystem.
Returns a new MsSqlFileSystem instance.
| Name | Type | Description |
|---|---|---|
| userId | System.String | The userId of the current user. |
| isAnonymous | System.Boolean | A flag indicating if the login is anonymous. |
Returns a new MsSqlFileSystem instance implementation of the IUnixFileSystem.
Returns a new MsSqlFileSystem instance.
| Name | Type | Description |
|---|---|---|
| accountInformation | FubarDev.FtpServer.IAccountInformation | The IAccountInformation of the current user. |
FtpServer.MsSqlFileSystem
Extension methods for IFtpServerBuilder using to configure the MsSqlFileSystem using Dependency Injection.
Registers a MsSqlFileSystemProvider implementation of the IFileSystemClassFactory to provide a MsSqlFileSystem API.
the server builder used to configure the FTP server.
| Name | Type | Description |
|---|---|---|
| builder | FubarDev.FtpServer.IFtpServerBuilder | The server builder used to configure the FTP server. |