-
Notifications
You must be signed in to change notification settings - Fork 1
/
callbackHandler.js
49 lines (45 loc) · 1.02 KB
/
callbackHandler.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
class FilesystemHandler {
exists(error, data, callback, path, options, basePath) {
if (error) {
callback(error)
} else {
callback(data)
}
}
get(error, data, callback, path, options, basePath) {
if (error) {
callback(error)
} else {
callback(data)
}
}
delete(error, data, callback, path, options, basePath) {
if (error) {
callback(error)
} else {
callback(data)
}
}
put(error, data, callback, path, options, basePath) {
if (error) {
callback(error)
} else {
callback(data)
}
}
global(error, data, callback, path, options) {
if (error) {
callback(error)
} else {
callback(data)
}
}
createDir(error, data, callback) {
if (error) {
callback(error)
} else {
callback(true)
}
}
}
module.exports = FilesystemHandler