1.0.0 • Published 1 year ago
checkbeforedelete v1.0.0
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 });
1.0.0
1 year ago