rads-db 3.0.18 → 3.0.19
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.
|
@@ -77,6 +77,11 @@ var _default = {
|
|
|
77
77
|
async unlink(filepath) {
|
|
78
78
|
sanitizeFilepath(filepath);
|
|
79
79
|
return await _promises.default.unlink(filepath);
|
|
80
|
+
},
|
|
81
|
+
async rename(oldFilepath, newFilepath) {
|
|
82
|
+
sanitizeFilepath(oldFilepath);
|
|
83
|
+
sanitizeFilepath(newFilepath);
|
|
84
|
+
return await _promises.default.rename(oldFilepath, newFilepath);
|
|
80
85
|
}
|
|
81
86
|
};
|
|
82
87
|
module.exports = _default;
|
|
@@ -69,6 +69,11 @@ export default {
|
|
|
69
69
|
async unlink(filepath) {
|
|
70
70
|
sanitizeFilepath(filepath);
|
|
71
71
|
return await fs.unlink(filepath);
|
|
72
|
+
},
|
|
73
|
+
async rename(oldFilepath, newFilepath) {
|
|
74
|
+
sanitizeFilepath(oldFilepath);
|
|
75
|
+
sanitizeFilepath(newFilepath);
|
|
76
|
+
return await fs.rename(oldFilepath, newFilepath);
|
|
72
77
|
}
|
|
73
78
|
};
|
|
74
79
|
async function dirExists(path2) {
|