Skip to content
This repository was archived by the owner on Aug 4, 2022. It is now read-only.

Latest commit

 

History

History
13 lines (8 loc) · 401 Bytes

File metadata and controls

13 lines (8 loc) · 401 Bytes

Events

When running, secure-rm emits events to let you know the progression of the deletion.

You can indeed intercept events for each file.

srm.event.on('mark', (file) => console.log('File / directory reached: ' + file))
srm.event.on('removed', (file) => console.log('File / directory removed: ' + file))

srm.event.on('done', (path) => console.log('Process done. ' + path))