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.
Initializes a blank instance of FileSystemProvider.
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.
Name | Type | Description |
---|---|---|
The root path is also the current directory path.
Image: Returns or sets the icon that represents the file system. (Default: null
)
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 name of this root. This is the name that should be shown to the user.
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.
Checks whether the specified path starts with the Name of this file system provider.
Returns: Boolean. True if the specified path starts with the name of this file system provider.
Creates the specified directory and sub-directories.
Deletes the specified directory and, optionally, sub-directories.
Deletes the specified file.
Returns whether the specified file or directory exists.
Returns: Boolean. True of the file or directory exists.
Returns the FileAttributes for the specified path .
Returns: FileAttributes. An instance of FileAttributes with the relevant flags set.
Returns the file's creation time.
Returns: DateTime. A DateTime representing the timestamp of the file creation.
Returns a list of directory paths that match the pattern and search options in the specified path.
Returns: String[]. A Array containing the full path of the directories that match the search pattern and search options.
Returns a list of file paths that match the pattern and search options in the specified path.
Returns: String[]. A Array containing the full path of the files that match the search pattern and search options.
Returns the size of the file.
Returns: Int64.
Returns the last write timestamp for the specified file.
Returns: DateTime. A DateTime representing the timestamp of the last time the file was written.
Maps the virtual path to the corresponding physical path on the specific IFileSystemProvider implementation.
Returns: String. The physical path for the IFileSystemProvider implementation.
Opens the specified file for reading or writing.
Returns: Stream. A Stream that can be used to read or write the content of the file.
Renames the specified directory.
Renames the specified file.
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Name | Description |
---|---|
path
Path of the file to check.
path
Path of the directory to create.
path
Path of the directory to delete.
recursive
Indicates whether to delete sub directories.
path
Path of the file to delete.
path
Path of the file or directory to check.
path
File path for which to retrieve the FileAttributes.
path
Path of the file to query.
path
Path of the file to query.
path
Path of the file to query.
path
Virtual path to map to the corresponding physical path.
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.
path
Path of the directory to rename.
newName
The new directory name.
path
Path of the file to rename.
newName
The new file name.
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.
path
Path to search into.
pattern
Wild card pattern to match.
One of the SearchOption options.
path
Path to search into.
pattern
Wild card pattern to match.
One of the SearchOption options.
root
The root path of this file system.
name
The name of this file system.
searchOption
searchOption