Repository navigation
feat: adiciona biblioteca arquivos (File System) - #199
Open
samuel-c-santos wants to merge 1 commit into
Open
samuel-c-santos wants to merge 1 commit into
samuel-c-santos wants to merge 1 commit into
Conversation
✅ Deploy Preview for egua canceled.
|
✅ Deploy Preview for idegua ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This was referenced Aug 28, 2026
Member
|
Estou avaliando a melhor maneira de implementar esta funcionalidade na IDEgua |
- arquivos.leia(caminho) - ler arquivo como texto - arquivos.salvar(caminho, conteudo) - escrever arquivo - arquivos.existe(caminho) - verificar se arquivo existe - arquivos.remova(caminho) - deletar arquivo - arquivos.listar(diretorio) - listar arquivos de um diretorio Compativel com Node.js e navegador (shim lanca erro no navegador). Testes adicionados em tests/tests.egua.
samuel-c-santos
force-pushed
the
feat/biblioteca-arquivos
branch
from
September 3, 2026 18:13
c76c968 to
d37bba0
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Biblioteca
arquivos(File System)Adiciona nova biblioteca para manipulação de arquivos locais (apenas Node.js).
Funções
arquivos.leia(caminho)— ler arquivo como textoarquivos.salvar(caminho, conteudo)— escrever arquivoarquivos.existe(caminho)— verificar se arquivo existearquivos.remova(caminho)— deletar arquivoarquivos.listar(diretorio)— listar arquivos de um diretórioDetalhes
RuntimeErrorfslança erro no navegador)tests/tests.eguaDiscussão: Integração com IDEgua
A biblioteca usa
fsdo Node.js, que no navegador é substituído por um shim que lança erro. Para a IDEgua, podemos discutir alternativas:<input type="file">para ler arquivos do usuárioBlob+URL.createObjectURLpara salvar arquivosRelacionado ao ROADMAP de contribuição (Fase 1.2)