-
Notifications
You must be signed in to change notification settings - Fork 172
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
Colon not supported in folder name #34
Comments
I would prefer not introducing any kind of replacing as otherwise syncing back and forth would create duplicates. If anything we would need either a bijective encoding, or - if activated by a special flag - an injective one (e.g. replacing invalid characters by escapes like =3A for a colon). |
Not sure if I'll get to coding this, but it can be fixed by replacing the colon in the android folder name with a Modified Letter Colon |
Just to check, has anyone done a root cause analysis on this? Most Unix filesystems have no problem with colon characters (on Mac, maybe, but that's worked around) so I am intrigued by what is causing this? Edit: good heavens, there are several possible issues here:
|
For others on Windows who want to still be able to copy the files with invalid characters, this is the workaround I currently use. Replace the If you merely want the files with invalid names to be ignored, see here to have it just skip over files that have errors (you just add a try-catch in the loop): #29 (comment) |
I'm hit by this as well - and I'm using |
It's actually a new restriction when using the FUSE backed emulated storage and the code is in MediaProvider: public int insertFileIfNecessaryForFuse(@NonNull String path, int uid) {
...
if (!path.equals(getAbsoluteSanitizedPath(path))) {
Log.e(TAG, "File name contains invalid characters");
return OsConstants.EPERM;
} Since it's a limitation in the system (and to be fair, colon is indeed an invalid character for a FAT file system), I don't think EDIT: You can edit |
This used to work on Android 10 (for me) and I see absolutely no reason why ":" cannot be a valid character on modern filesystems. |
This is not only caused by colons, but is also by asterisks and double quotes. |
Hi |
It is not possible to create a folder with a colon
:
in its name on Android :Maybe replace it with a
_
?The text was updated successfully, but these errors were encountered: