Skip to content

v0.4.0

Compare
Choose a tag to compare
@github-actions github-actions released this 29 Nov 11:49

Changelog

⚠️ BREAKING CHANGE

  • DoExtend on TraverseOptions has been removed. All TraverseItems now include the fully populated Extension

✨ Introducing:

  • Sampling: a partial traversal can now be run where by a sample is taken for each directory navigated. This will be useful in those situations where a relatively long running process (eg invoking an external command which may take a few seconds or more as oppossed to micro seconds to complete, is invoked for every file encountered). So a client may wish to perform a preview operation where the command to invoke per file file, only runs on a reduced set. This reduce set an be defined 1 of 3 ways:
    πŸ“Œ slice: take slice of directory contents. The slice may be the first or last n entries (as defined in Options/Store/Sampling.NoOf). By default, the first entries are taken as the sample, but this can be changed to take the last, by setting Options/Store/Sampling.SamplingInReverse to true.
    πŸ“Œ filter: requires a filter to be defined. The sampler will use the filter to create the sample set and will also use the NoOf (mentioned above), to quantify the number of files/folders or both (for universal).
    πŸ“Œ custom: requires the client to define 2 new predicates in Options/Sampler.Custom, each and where. Together, they allow to client to customise how encountered directory's sample is taken
  • New filter scope: 2 new scopes have been introduced, for files and directories. This means the client can now target file or directory types for filtering.

πŸš€ Features

πŸ› Bug fixes

πŸ₯ Others