UNPKG

@minecraft/creator-tools

Version:

Minecraft Creator Tools command line and libraries.

28 lines (27 loc) 1.08 kB
import ElectronFolder from "./ElectronFolder"; import StorageBase from "./../storage/StorageBase"; import IStorage from "./../storage/IStorage"; export default class ElectronStorage extends StorageBase implements IStorage { path: string; name: string; rootFolder: ElectronFolder; static folderDelimiter: string; static electronStorages: { [path: string]: ElectronStorage; }; constructor(path: string, name: string); static processLocalFileUpdate(path: string): Promise<void>; /** * Called when a new file is detected by the Electron file watcher. * Routes to the appropriate ElectronStorage instance. */ static processLocalFileAdded(path: string): Promise<void>; /** * Called when a file is removed by the Electron file watcher. * Routes to the appropriate ElectronStorage instance. */ static processLocalFileRemoved(path: string): Promise<void>; getAvailable(): Promise<boolean>; joinPath(pathA: string, pathB: string): string; static getParentFolderPath(path: string): string; }