public override NT_STATUS GetAttributes(UserContext UserContext, FileContext FileObject, out DirectoryContext Attr) { lock (this) { FSItem item = ((MTPFileContext)FileObject).FSItem; return(item.GetAttributes(UserContext, out Attr)); } }
public override NT_STATUS GetAttributes(UserContext UserContext, string Name, out DirectoryContext Attr) { lock (this) { FSItem item = _topItem.GetItem(Name); if (item != null) { return(item.GetAttributes(UserContext, out Attr)); } Attr = null; return(NT_STATUS.NO_SUCH_FILE); } }