Skip to content
This repository has been archived by the owner on Feb 12, 2019. It is now read-only.

CreateFile not call when file name contains colon? #1752

Open
barcelona-messi opened this issue Aug 22, 2018 · 5 comments
Open

CreateFile not call when file name contains colon? #1752

barcelona-messi opened this issue Aug 22, 2018 · 5 comments

Comments

@barcelona-messi
Copy link

On Windows, CreateFile can call when file name contains *?<>|", but CreateFile not call when file name contains colon, why?

@strib
Copy link
Contributor

strib commented Aug 22, 2018

Windows doesn't allow colons in filenames: https://www.quora.com/Why-are-colons-not-allowed-in-the-filenames-of-Windows-files

@barcelona-messi
Copy link
Author

@strib ,yes, Windows doesn't allow colons in filenames, but dokan allow colons in filename, ZwCreateFile function can callback when i use dokan c lib, ZwCreateFile function can not callback when i use kbfs

@strib
Copy link
Contributor

strib commented Aug 23, 2018

I assume we don't allow it so as not to confuse certain Windows applications. @taruti might remember more.

@taruti
Copy link
Contributor

taruti commented Aug 28, 2018

Allowing files that won't work with common applications could lead to problems. Especially in shared folders with multiple people.

@barcelona-messi what kind of use-cases do you have? E.g. for maildirs usually an alternate separator character is used on Windows based systems.

@barcelona-messi
Copy link
Author

@taruti , file name allow contain colons in iOS or linux, i want mount iOS or linux filesystem

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

No branches or pull requests

3 participants