rads-db 0.1.92 → 0.1.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -14,6 +14,10 @@ var _default = {
|
|
|
14
14
|
sanitizeFilepath(filepath);
|
|
15
15
|
return await _promises.default.mkdir(filepath, options);
|
|
16
16
|
},
|
|
17
|
+
async rm(filepath, options) {
|
|
18
|
+
sanitizeFilepath(filepath);
|
|
19
|
+
return await _promises.default.rm(filepath, options);
|
|
20
|
+
},
|
|
17
21
|
async rmdir(filepath, options) {
|
|
18
22
|
sanitizeFilepath(filepath);
|
|
19
23
|
return await _promises.default.rmdir(filepath, options);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { FileSystemNode } from '../types';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
mkdir(filepath: string, options?: any): Promise<any>;
|
|
4
|
+
rm(filepath: string, options?: any): Promise<any>;
|
|
4
5
|
rmdir(filepath: string, options?: any): Promise<any>;
|
|
5
6
|
readdir(filepath: string, options?: any): Promise<FileSystemNode[]>;
|
|
6
7
|
writeFile(filepath: string, data: string | Uint8Array, options?: any): Promise<any>;
|
|
@@ -7,6 +7,10 @@ export default {
|
|
|
7
7
|
sanitizeFilepath(filepath);
|
|
8
8
|
return await fs.mkdir(filepath, options);
|
|
9
9
|
},
|
|
10
|
+
async rm(filepath, options) {
|
|
11
|
+
sanitizeFilepath(filepath);
|
|
12
|
+
return await fs.rm(filepath, options);
|
|
13
|
+
},
|
|
10
14
|
async rmdir(filepath, options) {
|
|
11
15
|
sanitizeFilepath(filepath);
|
|
12
16
|
return await fs.rmdir(filepath, options);
|