Comment on page
FileSystemProvider
Wisej.Core.FileSystemProvider
Namespace: Wisej.Core
Assembly: Wisej.Framework (3.2.0.0)
Default implementation of IFileSystemProvider. Provides access to the server's file system.
C#
VB.NET
public class FileSystemProvider : IFileSystemProvider
Public Class FileSystemProvider
Inherits IFileSystemProvider
Creates a new instance of the FileSystemProvider class with the specified root and name . The root is added in front of all path arguments passed to all methods in this class.
The root path is also the current directory path.
String: Returns or sets the icon name or URL that represents the file system. (Default:
"resource.wx/icon-storage.svg"
)String: Returns or sets the root path for the file system. All file system operations in the implementation class are expected to be limited to the root.
Parameter | Type | Description |
---|---|---|
path | Path of the file to check. |
Creates the specified directory and sub-directories.
Parameter | Type | Description |
---|---|---|
path | Path of the directory to create. |
Deletes the specified directory and, optionally, sub-directories.
Deletes the specified file.
Parameter | Type | Description |
---|---|---|
path | Path of the file to delete. |
Returns whether the specified file or directory exists.
Parameter | Type | Description |
---|---|---|
path | Path of the file or directory to check. |
Parameter | Type | Description |
---|---|---|
path |
Returns the file's creation time.
Parameter | Type | Description |
---|---|---|
path | Path of the file to query. |
Returns a list of directory paths that match the pattern and search options in the specified path.
Parameter | Type | Description |
---|---|---|
path | Path to search into. | |
pattern | Wild card pattern to match. | |
searchOption |
Returns a list of file paths that match the pattern and search options in the specified path.
Parameter | Type | Description |
---|---|---|
path | Path to search into. | |
pattern | Wild card pattern to match. | |
searchOption |
Returns the size of the file.
Parameter | Type | Description |
---|---|---|
path | Path of the file to query. |
Returns the last write timestamp for the specified file.
Parameter | Type | Description |
---|---|---|
path | Path of the file to query. |
Maps the virtual path to the corresponding physical path on the specific IFileSystemProvider implementation.
Parameter | Type | Description |
---|---|---|
path | Virtual path to map to the corresponding physical path. |
Opens the specified file for reading or writing.
Parameter | Type | Description |
---|---|---|
path | The path of the file to open. | |
mode | Specified if the file should be opened, created, overwritten or truncated. | |
access | Specified if the stream should be opened for reading or writing. |
Renames the specified directory.
Renames the specified file.
Name | Description |
---|---|
Abstracts access to the file system. Implementations of this interface are used by the file dialogs and other components that need to interact with the file system. Wisej provides the built-in default implementation for the standard disk-based file system and a number of alternative implementations in the Wisej extensions, such as: Amazon S3, Google Drive, and Microsoft OneDrive. |
Last modified 9d ago