Hello.
The definition of the CreateFile callback has these comments:
// CreateFile
// If file is a directory, CreateFile (not OpenDirectory) may be called.
// In this case, CreateFile should return 0 when that directory can be opened.
// You should set TRUE on DokanFileInfo->IsDirectory when file is a directory.
// When CreationDisposition is CREATE_ALWAYS or OPEN_ALWAYS and a file already exists,
// you should return ERROR_ALREADY_EXISTS(183) (not negative value)
But the implementation for for CreateFile in the mirror.c sample application does not:
a) set DokanFileInfo->IsDirectory to true when the file path points to a directory
b) return ERROR_ALREADY_EXISTS when the file exists, and the creationDisposition is CREATE_ALWAYS or OPEN_ALWAYS
Are the comments out of date? Or is mirror.c incorrect/incomplete?
Thanks,
Tobias.