You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you sync files with filenames that contain unsupported characters (e.g., "*/:<>?\|, most of which are valid in Linux) in the Android filesystem, they will become staged for delete. It might be helpful to display a warning about that and leave the files as unstaged deletions.
Relevant errors (if available) from notifications or console (CTRL+SHIFT+I)
No response
Steps to reproduce
On a PC, commit a file with a filename that includes one of the following characters: "*/:<>?\|
On Android, do Git: Pull from Obsidian
Expected Behavior
Warning appears and suggests renaming affected files.
Addition context
No response
Operating system
Android
Installation Method
None
Plugin version
2.30.1
The text was updated successfully, but these errors were encountered:
While it might be good for a warning to appear about invalid filenames on Android, if it's not possible, the app should recommend users simply just avoid using those filenames altogether. Might be good to explore disabling the core.protectNTFS git flag and also adding those files to the .git/info/exclude file. That would unfortunately mean you can't access or edit those files but it would keep them safe from accidental deletion.
Enabling core.protectNTFS is a fantastic idea! I didn't know that flag existed, and it looks like the NTFS set of prohibited characters is the same as the Android one. Thanks a lot!
Edit: I tried using core.protectNTFS, but that still lets me create and commit files and directories with invalid characters. It seems that it will only do something when you're cloning a repo/checking out a branch from a Windows machine (could be wrong).
The .git/info/exclude & warning route is a good idea.
Describe the bug
If you sync files with filenames that contain unsupported characters (e.g.,
"*/:<>?\|
, most of which are valid in Linux) in the Android filesystem, they will become staged for delete. It might be helpful to display a warning about that and leave the files as unstaged deletions.Relevant errors (if available) from notifications or console (
CTRL+SHIFT+I
)No response
Steps to reproduce
"*/:<>?\|
Git: Pull
from ObsidianExpected Behavior
Warning appears and suggests renaming affected files.
Addition context
No response
Operating system
Android
Installation Method
None
Plugin version
2.30.1
The text was updated successfully, but these errors were encountered: