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

[macOS] Picked file with name containing forward slash can't be found #1680

Open
kaciula opened this issue Jan 14, 2025 · 1 comment
Open
Labels
new issue An issue that hasn't yet been seen from the maintainer stale

Comments

@kaciula
Copy link

kaciula commented Jan 14, 2025

On macOS, the GUI allows for file names to contain the forward slash character, like: Cha/Cha 1 Start.mp4 In terminal, this same file looks like: Cha:Cha 1 Start.mp4 This seems to be "normal" behavior on macOS. Forward slash inside filenames is allowed in GUI but colon is not. The opposite is true in terminal: colon is allowed in terminal but forward slash is not. Accordingly. macOS shows a different filename for the same file in the GUI vs terminal. If you create file with a colon in terminal, its name will contain a forward slash in Finder or any other GUI.

My issue is that my macOS app cannot find a picked file that contains forward slashes in the name. Trying to copy it does not work as the path has a wrong forward slash due to the file name. The forward slash needs to be replaced with a colon in order for the operation to work.

This issue does not appear on iOS as the picked file has the correct filename with the colon replacing the forward slash.

@kaciula kaciula added the new issue An issue that hasn't yet been seen from the maintainer label Jan 14, 2025
Copy link

This issue is stale because it has been open for 7 days with no activity.

@github-actions github-actions bot added the stale label Feb 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new issue An issue that hasn't yet been seen from the maintainer stale
Projects
None yet
Development

No branches or pull requests

1 participant