Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

CabinetMover

import { CabinetMover } from "https://raw.githubusercontent.com/dan-online/cabinet/master/src/handlers/Move.ts";
@example
const { mover } = new Cabinet("./file.txt");
mover.sync("./movedto.txt")
class CabinetMover {
constructor(fs: Cabinet);
private fs: Cabinet;
filePath: string;
 
callback(location: string, cb: (err?: CabinetError) => void);
move(location: string, callback?: (err?: CabinetError) => void);
promise(location: string);
sync(newLocation: string);
}

§Constructors

§
new CabinetMover(fs: Cabinet)
[src]

§Properties

§
filePath: string
[src]

Path to the file

§Methods

§
callback(location: string, cb: (err?: CabinetError) => void)
[src]

Move the file and receive a callback

§
move(location: string, callback?: (err?: CabinetError) => void)
[src]

Move the file with an optional callback

§
promise(location: string)
[src]

Move the file and receive a promise

§
sync(newLocation: string)
[src]

Synchronously move the file