Skip to content

1.14.0

Latest

Choose a tag to compare

@github-actions github-actions released this 19 Nov 19:25

Breaking

  • FileSystem.scanFiles replaces enumerateFiles and fileURLStream. It checks for a stop on every entry, reports a throttled found count, filters files with a caller predicate and lists folders concurrently: 386,852 files took about 2.5-3 s against 9.8-12.9 s for the serial walk on a USB SSD, and 11 s against 89 s cold over SMB.

Added

  • OriginalsStore keeps a copy of a file as it was before its first rendered save, links the file to it through a com.spongefork.original.<product> extended attribute, and records the renders run since (OriginalRecord). It prices a keep, totals and removes the folder, and does the keep-swap-note sequence in replace. removeMarks(from:) clears every such attribute from a file.
  • FileModificationObserver gains suppress(urls:) and unsuppress(urls:), counted per file, and refreshTrackedState(for:), so a long write to a few files leaves every other change seen.
  • URL.renderSiblingURL() names the hidden file a render writes beside its original, and removeStaleRenderSiblingsOnce() removes such files older than the launch, once per folder per launch.
  • FinderTagGroup.displayLabels(hexColor:) builds one alphabetical list of text tags, Finder colors and the custom color by its display name.
  • FileSystem.volumeURL(forFileURL:among:) is public, so a caller asking about many folders reads the mounted volumes once.

Fixed

  • A folder behind an alias or symlink is walked at most once, and never when it is a root, an ancestor of one, or inside one, so a link back up the tree no longer recurses until the stack overflows. enumerateDirectories has the same guard.
  • FileSystem.volumeURL(forFileURL:) compares whole path components and returns the deepest match. It compared string prefixes, so a mounted /Volumes/ADD claimed files under an unmounted /Volumes/ADD2.

Other

  • Comment punctuation cleanup, and removal of tests that only restated the code under test.