public int CreateFile(string filename, FileAccess access, FileShare share, FileMode mode, FileOptions options, DokanFileInfo info) { Trace.TraceInformation("CreateFile: {0}", filename); return(_gridFs.FindFileOrDir(GetPath(filename)) != null ? 0 : -DokanNet.ERROR_FILE_NOT_FOUND); }