Files
mixly3/common/modules/mixly-modules/common/fs.js

47 lines
898 B
JavaScript

goog.loadJs('common', () => {
goog.require('Mixly');
goog.provide('Mixly.FS');
class FS {
constructor() {}
async rename(oldPath, newPath) {}
async createFile(filePath) {}
async readFile(filePath, encoding = 'utf8') {}
async writeFile(filePath, data) {}
async isFile(filePath) {}
async renameFile(oldFilePath, newFilePath) {}
async moveFile(oldFilePath, newFilePath) {}
async copyFile(oldFilePath, newFilePath) {}
async deleteFile(filePath) {}
async createDirectory(folderPath) {}
async readDirectory(folderPath) {}
async isDirectory(folderPath) {}
async isDirectoryEmpty(folderPath) {}
async renameDirectory(oldFolderPath, newFolderPath) {}
async moveDirectory(oldFolderPath, newFolderPath) {}
async copyDirectory(oldFolderPath, newFolderPath) {}
async deleteDirectory(folderPath) {}
}
Mixly.FS = FS;
});