UNPKG

fslockjs

Version:

Easy to use file system queue with locking and events. Provide Asynchronous utilities for Directories and File

13 lines (11 loc) 328 B
class CannotReadFileNotFound extends Error { constructor(...params) { super(); this.code = 'ENOENT'; this.errno = -2; this.syscall = 'open'; this.path = params[0] || "Unknown path"; this.message = `ENOENT: no such file or directory, open '${this.path}'`; } }; export default CannotReadFileNotFound;