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

Rename Files with the trailing space in Windows #371

Open
JoaoGomes2110 opened this issue Oct 19, 2021 · 0 comments
Open

Rename Files with the trailing space in Windows #371

JoaoGomes2110 opened this issue Oct 19, 2021 · 0 comments
Assignees

Comments

@JoaoGomes2110
Copy link

JoaoGomes2110 commented Oct 19, 2021

Currently, when importing files in Windows, and a file has a trailing space, and error occurs and the process is aborted. Instead, the wanted behaviour is:

  1. Pause processing and present a modal dialog stating which file has a trailing space, provide two options: Skip or Rename
  2. If Skip is chosen, don't include the file in the SIP or skip the whole SIP if that is the single file, is Rename is chosen, rename the file to remove the trailing space.
  3. Continue processing.

Rename should use run a command to rename the file:

rename "\\?\c:\<PATH HERE>\[ ]1[ ]" "<NEW FILE NAME>"

or

rename "\\?\c:\<PATH HERE>\ 1 " "<NEW FILE NAME>"

source: https://itectec.com/superuser/rename-delete-windows-x64-folder-with-leading-and-trailing-space/

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

No branches or pull requests

1 participant