Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

156
Views
Attach extra metadata to file using fs and nodejs in electronjs

I am using electronjs and react app to sync some files between my server and filesystem. to sync files with filesystem I need to find new files from server and download them to filesystem, so I am using

const writer = fs.createWriteStream

and inside axios successfull response using to store file like below

response.data.pipe(writer);

every things fine but I need to sync any changes with filesystem to my server. for example if some old files just moved between some folders , I just need to find that file in my server and change it subfolder and no need to upload it again so I need some uniqe keys to recognize files. each files in my server have uniqe key to recognize. is it possible to attach some metadata to file whene I am saving it to filesystem like an id?

I know one way is to save files hash and compare files hash but for a large file it could take time.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!