Skip to content

copyFileSync from one file system to another#747

Open
alexvgjm wants to merge 2 commits intostreamich:masterfrom
alexvgjm:copyfilesynctwofs
Open

copyFileSync from one file system to another#747
alexvgjm wants to merge 2 commits intostreamich:masterfrom
alexvgjm:copyfilesynctwofs

Conversation

@alexvgjm
Copy link
Copy Markdown

@alexvgjm alexvgjm commented Nov 20, 2022

A simple workaround that met my needs. If it seems correct to you, I will make the similar asynchronous versions or with the corrections that you propose.

It checks if src and dest point to the same fs. If not the case, it will read from src fs and write to dest fs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant