kbfs icon indicating copy to clipboard operation
kbfs copied to clipboard

CreateFile not call when file name contains colon?

Open barcelona-messi opened this issue 6 years ago • 5 comments

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

barcelona-messi avatar Aug 22 '18 15:08 barcelona-messi

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

strib avatar Aug 22 '18 16:08 strib

@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

barcelona-messi avatar Aug 23 '18 01:08 barcelona-messi

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

strib avatar Aug 23 '18 02:08 strib

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.

taruti avatar Aug 28 '18 15:08 taruti

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

barcelona-messi avatar Aug 29 '18 11:08 barcelona-messi