Constructor
new HttpDrive()
Private constructor, use open() instead.
Classes
Methods
getPrivateDir() → {IFile}
Get a private dir for sharing files with external applications.
Throws:
Exception
Returns:
The private dir
- Type
- IFile
getVirtualFile(file) → {AesFile}
Parameters:
Name | Type | Description |
---|---|---|
file |
The real file. |
Returns:
The encrypted file.
- Type
- AesFile
onUnlockError()
When authorization fails.
onUnlockSuccess()
When authorization succeed.
(async, static) open(dir, password) → {Promise.<AesDrive>}
Helper method that opens and initializes a Drive
Parameters:
Name | Type | Description |
---|---|---|
dir |
IFile | The real directory that contains the drive. |
password |
string | Text password to use with this drive. |
Returns:
The drive.
- Type
- Promise.<AesDrive>