using (UserRequestContext context = new UserRequestContext(this.UserToken, inputFileName))
    {
        using (UserRequestContext context2 = new UserRequestContext(this.UserToken, outputFileName))
        {
            SPFile inputFile = context.Web.GetFile(inputFileName);
            SPFile file = context2.Web.GetFile(outputFileName);
            SPList inputList = context.Web.Lists[inputFile.ParentFolder.ParentListId];
            SPList outputList = context2.Web.Lists[file.ParentFolder.ParentListId];
            new FolderIterator(inputList, inputFile.ParentFolder, outputList, file.ParentFolder, false, this.Settings).CheckSingleItem(inputFile, file);
        }
    }