public DokanError CreateDirectory(string filename, DokanFileInfo info) { CacheEntry entry = cache_.Lookup(filename); if (entry.Parrent != null) { entry.Parrent.RemoveAllCache(); } return(ope_.CreateDirectory(filename, info)); }
//// public int CreateDirectoryProxy(string rawFileName, DokanFileInfo rawFileInfo) { try { return((int)_operations.CreateDirectory(rawFileName, rawFileInfo)); } catch { #if DEBUG throw; #endif return(ERROR_INVALID_FUNCTION); } }
public int CreateDirectoryProxy(IntPtr rawFileName, ref DOKAN_FILE_INFO rawFileInfo) { try { string file = GetFileName(rawFileName); DokanFileInfo info = ConvertFileInfo(ref rawFileInfo); int ret = operations.CreateDirectory(file, info); rawFileInfo.Context = info.refFileHandleContext; rawFileInfo.IsDirectory = Convert.ToByte(info.IsDirectory); return(ret); } catch (Exception ex) { Log.ErrorException("CreateDirectoryProxy threw: ", ex); return(-1); } }
//// public NtStatus CreateDirectoryProxy(string rawFileName, DokanFileInfo rawFileInfo) { try { Trace("\nCreateDirectoryProxy : " + rawFileName); Trace("\tContext\t" + ToTrace(rawFileInfo)); NtStatus result = operations.CreateDirectory(rawFileName, rawFileInfo); Trace("CreateDirectoryProxy : " + rawFileName + " Return : " + result); return(result); } #pragma warning disable 0168 catch (Exception ex) #pragma warning restore 0168 { Trace("CreateDirectoryProxy : " + rawFileName + " Throw : " + ex.Message); return(DokanResult.InvalidParameter); } }