0.1.2 • Published 8 years ago
isotropy-lib-filesystem v0.1.2
isotropy-lib-filesystem
Filesystem Library for the Isotropy Project
import * from "isotropy-lib-filesystem"1. getFiles(dir, recurse = false)
returns a promise which returns
an array
[
{ dir: "/abc", filename: "hllo.txt", contents: "words a..." },
{ dir, filename, contents },
...
]2. readFile(dir, filename)
returns a promise which returns
an object
{ contents: fileData }3. createFile(dir, filename, contents)
returns a promise that can be awaited upon4. deleteFile(dir, filename)
returns a promise that can be awaited upon5. updateFile(dir, filename, contents)
returns a promise that can be awaited upon6. moveFile(dir, filename, newDir, newFilename)
returns a promise that can be awaited upon7. moveDir(dir, newDir)
returns a promise that can be awaited upon