Class FileSystem
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The File and Directory Entries API interface FileSystem is used to represent a file system. These objects can be obtained from the Filesystem property on any file system entry. Some browsers offer additional APIs to create and manage file systems, such as Chrome's Window.RequestFileSystem method.
[Value("FileSystem")]
public class FileSystem
- Inheritance
-
FileSystem
- Inherited Members
Remarks
This interface will not grant you access to the users' filesystem. Instead, you will have a "virtual drive" within the browser sandbox if you want to gain access to the users' file system, you need to invoke the user, for example by installing a Chrome extension. The relevant Chrome API can be found in the Chrome developer docs.
-File and Directory Entries API
-FileSystemEntry, FileSystemFileEntry, and FileSystemDirectoryEntry
Constructors
FileSystem()
public FileSystem()
Properties
Name
The read-only name property of the
FileSystem interface indicates the file system's name. This
string is unique among all file systems currently exposed by the File and Directory Entries API.
[Value("name")]
public string Name { get; }
Property Value
- string
A string representing the file system's name.
Remarks
Root
The read-only root property of the
FileSystem interface specifies a FileSystemDirectoryEntry
object representing the root directory of the file system, for use with the File and Directory Entries API.
[Value("root")]
public FileSystemDirectoryEntry Root { get; }
Property Value
- FileSystemDirectoryEntry
A FileSystemDirectoryEntry representing the file system's root
directory.