Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

245
Visualizações
React based file manger, deleting local files from the browser/ local host

I'm trying to build a reactjs based web application to manage files on my local machine. my code is currently based off of this project https://github.com/knyzorg/simple-file-explorer which uses WebSockets to view files, my question is:

is it possible to send commands to modify file (change the name, move, or delete) that are saved to my computer?

don't necessarily need the solution, just a point in the right direction (though a solution would be cool to if you have one).

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

This is a pretty broad question.

  1. No, the browser does not allow (for good reason) access to your local filesystem via Javascript. If it did, any website could access and modify your files! It would be a security nightmare.

  2. Using server-side Javascript (via NodeJS), one is able to access the local filesystem of the server the script is hosted on via the fs module. This appears to be what the project you've linked to is doing - using React as a GUI (we might call it a 'front-end') for a NodeJS service that modifies a local filesystem (we might call it a 'back-end').

about 4 years ago · Juan Pablo Isaza Relatório

0

I'm knyzorg from GitHub (the author of the linked repo). It is definitely possible to send commands to manipulate the files. All you would need to do is add new commands inside the switch here and implement calls to them on the front-end.

The project uses ionotify to synchronize the state with the client. This means that the server will push the updates to the client as they happen, such that you would only need to implement the functionality to modify the file-system without worrying about updating the client in any way.

This was entirely a toy project, I am surprised to find it referenced here. Feel free to write me an email if you have any questions about the project's specifics.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda