-
Notifications
You must be signed in to change notification settings - Fork 2
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
Visual glitches in folders with files named "Icon." #39
Comments
I've reproduced the issue and confirm that this is a problem. There are two things here:
|
1 is easily solvable but I don't think 2 can be fully solved while keeping the exclude-file compatible output. I was looking at restic's exclude file parsing code and I believe there is no way to match a newline in the filename. Edit: It might be possible with a character class excluding everything except newline. |
Thank you. |
I have a solution which seems to work, the only problem is that the exclude file will look a bit strange when viewed with standard text tools if you have carriage returns or newlines. But it appears to work, with restic doing the right thing when passed that exclude file. It seems like a good solution, if you have carriage returns and newlines in your filenames you are doing something odd anyway :) |
I've opened the PR (#40). Could you possibly test it with your repo and let me know how it goes? |
Thank you. redu shows the file as:
in exclude file it appears as:
restic successfully removed the file:
|
Thank you. Merging the PR. |
I've noticed that when files named "Icon." exist in the folder, the line of the file is not cleared and characters from previous screen remains on the line.
Also when the line with the file is selected it becomes completely empty while still displaying details in the pop-up.
Those files appear in Dropbox folders on old OSX versions (circa 2014).
Actual file name is:
or in hex
P.S.
I didn't notice any issues with regular unicode and legacy encodings, even with Right-to-Left languages ;-)
So the issues seems to be specific to filenames containing "control" characters and might be in one of the libraries used by redu.
P.P.S
After thinking about it, I am not sure if it would possible to "Mark" those files and pass to restic.
So maybe they should be just ignored since they are taking zero space.
The text was updated successfully, but these errors were encountered: