Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

163
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda