checkbeforedelete
v1.0.0
Published
The function first check and then delete the file
Downloads
2
Readme
checkbeforedelete
The function first check and then delete the file
Usage/Examples
const { checkbeforedelete } = require("checkbeforedelete");
var thepath = `uploads/profilephoto/${oldProfile}`;
//calling function
checkbeforedelete({ path: thepath });