1.0.0 • Published 1 year ago

checkbeforedelete v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

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 });