Diffoniq

v2.5.0
com.diffoniq/diffoniq Checked 53 minutes ago Published 2 days ago

Compare folders, archives (ZIP, 7z) and files on Windows and Linux; preview a sync.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

compare_tree Compare two folders or archives

Compare two folder trees with Diffoniq; either side may also be an archive (ZIP, 7z, TAR) or a folder inside one (/home/me/dl/release.zip/release-2.5, also through an archive inside it). An archive entry is read in memory. An archive inside an archive and an entry over 64 MB pass through a temporary file in Diffoniq's own temp folder, removed when the call ends. A document converted to text also passes through such a temporary file, and its text is kept in Diffoniq's converter cache (convcache in its settings folder) for the next comparison. Nothing is written beside the archive. An archive wi…

ParameterTypeDescription
left *stringAbsolute path of the left folder or archive
right *stringAbsolute path of the right folder or archive
contentbooleanDecide by file content (hash) instead of size and timestamp
diffoniqignorebooleanApply the .diffoniqignore files of both trees (default true; false lists what they hide)
excludearrayLeave out files and folders matching these wildcard patterns on both sides, like ["*.bak", ".obsidian"]; an excluded folder goes with everything below it. The summary does not count what is left out.
gitignorebooleanApply the .gitignore files of both trees as a filter
include_online_onlybooleanHas no effect on Linux
limitintegerList at most this many entries
offsetintegerSkip this many matching entries first - the next page of a cut list (summary.listed + summary.skipped of the last answer)
onlyarrayList only entries in these states (the summary still counts all). Default: every difference.
pathstringList only what lies below this folder, relative to both roots (like Docs/2024) - one of the "folders" of an earlier answer. The summary still counts everything. A file or an archive there is an error…

compare_file Compare two files

Compare two text files line by line with Diffoniq. A file may lie inside an archive (/home/me/bak/site.zip/orders.csv, also below a folder in it or in an archive inside it): Diffoniq unpacks it itself. An archive entry is read in memory. An archive inside an archive and an entry over 64 MB pass through a temporary file in Diffoniq's own temp folder, removed when the call ends. A document converted to text also passes through such a temporary file, and its text is kept in Diffoniq's converter cache (convcache in its settings folder) for the next comparison. Nothing is written beside the archive…

ParameterTypeDescription
left *stringAbsolute path of the left file, which may lie inside an archive
right *stringAbsolute path of the right file, which may lie inside an archive
ignore_blank_linesbooleanPass over lines that are empty or hold only spaces and tabs: neither listed nor counted (summary.ignoredBlank)
ignore_casebooleanCompare case-insensitively
ignore_trailing_blanksbooleanIgnore blanks at the end of a line
ignore_whitespacebooleanIgnore all spaces and tabs
include_online_onlybooleanHas no effect on Linux
limitintegerList at most this many lines
offsetintegerSkip this many matching lines first - the next page
onlyarrayList only entries in these states (the summary still counts all). Default: every difference.
originalbooleanCompare the bytes of Word, Excel, PowerPoint, OpenDocument, EPUB and JSON files instead of their text

convert_file Read a document as text

Read one Word, Excel, PowerPoint (also the old .doc, .xls, .ppt), OpenDocument, EPUB or JSON file as text, with Diffoniq's built-in converters - exactly the text compare_file compares. Returns the converter, the file's size and modified time (UTC), its sheets with their last row or its number of slides, then the lines: each with its line number and where it lies - sheet/row for a spreadsheet (an Excel cell with its formula beside the value), slide/part ("slide" or "notes") for a presentation, section ("body", "footnotes", "endnotes", "header", "footer", "textBoxes"; an old .doc keeps headers a…

ParameterTypeDescription
file *stringAbsolute path of the file to read
include_online_onlybooleanHas no effect on Linux
limitintegerReturn at most this many lines
offsetintegerSkip this many matching lines first - the next page
sheetstringRead only this sheet of a spreadsheet
slideintegerRead only this slide of a presentation

sync_preview Preview a folder synchronization

Show what synchronizing a target folder from a source folder would do, without doing it (a dry run): folders to create, files to copy (new or changed), to rename on the target and, in mirror mode, to delete there. mirror makes the target an exact copy; update only copies new and changed files. Returns counts and bytes first, then the operations. Nothing is ever changed. What a synchronization would do comes only from this tool: never derive it from a compare_tree answer. Source and target are folders on disk: an archive, or a folder inside one, cannot be either (archives are view-only). What a…

ParameterTypeDescription
source *stringAbsolute path of the source folder
target *stringAbsolute path of the target folder
contentbooleanDecide by file content (hash) instead of size and timestamp
diffoniqignorebooleanLeave alone what either side's .diffoniqignore hides (default true)
excludearrayLeave out files and folders matching these wildcard patterns on both sides, like ["*.bak", ".obsidian"]; an excluded folder goes with everything below it. The summary does not count what is left out.
gitignorebooleanLeave alone what either side's .gitignore hides
include_online_onlybooleanHas no effect on Linux
limitintegerList at most this many operations
modestringmirror: the target becomes a copy (deletes extras); update: copy new and changed files only
offsetintegerSkip this many operations first - the next page