DEV Community

Discussion on: How to use Node.js to backup your personal files (and learn some webdev skills along the way)

Collapse
 
manomite profile image
Adeyeye George

Instead of hashing which might consume more memory, why not just create a txt file and place the file path and names inside...

Then when checking just compare the file path and name. This will also prevent you from using lock to lock a file too