services/disk.js
// Deletes a file from the filesystem
Deletes a file from the filesystem
Deletes a file from the filesystem
function deleteFile(filePath) {
  return new Promise((resolve, reject) => fs.unlink(filePath, (err, str) => {
    if (err) {
      reject(err);
    } else {
      resolve(str);
    }
  }));
}
function deleteFile ( filePath ) { return new Promise ( ( resolve , reject ) => fs . unlink ( filePath , ( err , str ) => { if ( err ) { reject ( err ) ; } else { resolve ( str ) ; } } ) ) ; }
Deletes a file from the filesystem
Deletes a file from the filesystem