When you Right-Click on a Cryptomator Drive mounted under Windows via dokan, the Explorers “New” submenu only shows “Folder” to create new folders, but offers no simple file to create, like when right-Clicking on a normal drive folder. c:\temp f.e.
From my own dokan implementations, i know this depends on a missing or failing implemetation of dokan-interface GetFileSecurity. Here is a simple sample of a working implementation (from the dokan mirror sample) using the .NET standard classes System.IO.Directory and System.IO.File to return just the Security Informations of the underlaying implementations directory oder file. You also can use any other well-know directory or file inside the crypted folder instead. This will work much better than your existing implemetation, whatever it does.
public NtStatus GetFileSecurity(string fileName, out FileSystemSecurity security, AccessControlSections sections,
DokanFileInfo info)
{
try
{
security = info.IsDirectory
? (FileSystemSecurity)Directory.GetAccessControl(GetPath(fileName))
: File.GetAccessControl(GetPath(fileName));
return Trace(nameof(GetFileSecurity), fileName, info, DokanResult.Success, sections.ToString());
}
catch (UnauthorizedAccessException)
{
security = null;
return Trace(nameof(GetFileSecurity), fileName, info, DokanResult.AccessDenied, sections.ToString());
}
}