Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Windows] io.rmRF doesn't delete long file names #811

Open
erictuvesson opened this issue May 17, 2021 · 0 comments
Open

[Windows] io.rmRF doesn't delete long file names #811

erictuvesson opened this issue May 17, 2021 · 0 comments
Labels
bug Something isn't working io

Comments

@erictuvesson
Copy link

Describe the bug
io.rmRF which can be found here, doesn't support deleting long files names.

if (await ioUtil.isDirectory(inputPath, true)) {
await exec(`rd /s /q "${inputPath}"`)
} else {
await exec(`del /f /a "${inputPath}"`)
}

To Reproduce

  1. Have folder/files with very long names (255+)
  2. Run: rd /s /q "${inputPath}"
  3. error: "The path ... is too long."

Expected behavior
Running a PowerShell script like this works.

Remove-Item -LiteralPath "${inputPath}" -Force -Recurse

Desktop (please complete the following information):

  • OS: Windows
@erictuvesson erictuvesson added the bug Something isn't working label May 17, 2021
@thboop thboop added the io label Jun 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working io
Projects
None yet
Development

No branches or pull requests

2 participants