docs: del file
This commit is contained in:
@@ -42,7 +42,12 @@ export const saveFile = (path: string, data: string): Promise<void> => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deletes a file from the file system.
|
||||||
|
* @param path The path to the file.
|
||||||
|
* @returns {Promise<void>}
|
||||||
|
* @category WorkflowManagement-Storage
|
||||||
|
*/
|
||||||
export const deleteFile = (path: string): Promise<void> => {
|
export const deleteFile = (path: string): Promise<void> => {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
fs.unlink(path, (err) => {
|
fs.unlink(path, (err) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user