1.0.0 • Published 3 years 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
3 years ago