Diffoniq
v2.5.0Compare 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…
| Parameter | Type | Description |
|---|---|---|
left * | string | Absolute path of the left folder or archive |
right * | string | Absolute path of the right folder or archive |
content | boolean | Decide by file content (hash) instead of size and timestamp |
diffoniqignore | boolean | Apply the .diffoniqignore files of both trees (default true; false lists what they hide) |
exclude | array | Leave 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. |
gitignore | boolean | Apply the .gitignore files of both trees as a filter |
include_online_only | boolean | Has no effect on Linux |
limit | integer | List at most this many entries |
offset | integer | Skip this many matching entries first - the next page of a cut list (summary.listed + summary.skipped of the last answer) |
only | array | List only entries in these states (the summary still counts all). Default: every difference. |
path | string | List 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…
| Parameter | Type | Description |
|---|---|---|
left * | string | Absolute path of the left file, which may lie inside an archive |
right * | string | Absolute path of the right file, which may lie inside an archive |
ignore_blank_lines | boolean | Pass over lines that are empty or hold only spaces and tabs: neither listed nor counted (summary.ignoredBlank) |
ignore_case | boolean | Compare case-insensitively |
ignore_trailing_blanks | boolean | Ignore blanks at the end of a line |
ignore_whitespace | boolean | Ignore all spaces and tabs |
include_online_only | boolean | Has no effect on Linux |
limit | integer | List at most this many lines |
offset | integer | Skip this many matching lines first - the next page |
only | array | List only entries in these states (the summary still counts all). Default: every difference. |
original | boolean | Compare 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…
| Parameter | Type | Description |
|---|---|---|
file * | string | Absolute path of the file to read |
include_online_only | boolean | Has no effect on Linux |
limit | integer | Return at most this many lines |
offset | integer | Skip this many matching lines first - the next page |
sheet | string | Read only this sheet of a spreadsheet |
slide | integer | Read 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…
| Parameter | Type | Description |
|---|---|---|
source * | string | Absolute path of the source folder |
target * | string | Absolute path of the target folder |
content | boolean | Decide by file content (hash) instead of size and timestamp |
diffoniqignore | boolean | Leave alone what either side's .diffoniqignore hides (default true) |
exclude | array | Leave 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. |
gitignore | boolean | Leave alone what either side's .gitignore hides |
include_online_only | boolean | Has no effect on Linux |
limit | integer | List at most this many operations |
mode | string | mirror: the target becomes a copy (deletes extras); update: copy new and changed files only |
offset | integer | Skip this many operations first - the next page |