fs-tree 0.3.0

Filesystem trie-like tree structure for commons operations.
Documentation

fs-tree

Filesystem trie-like tree structure for commons operations.

Given a path, you can load a FsTree which might represent a regular file, directory, or symlink.

Features:

  • Aware of regular files, directories and symlinks.
  • Read from your filesystem.
  • Merge trees.
  • Get the difference of two trees.
  • Macros for creating trees more easily (WIP).
  • Tree iteration.
    • Supports useful tree filters.
    • You can perform operations on the iteration results (e.g. read each file and link them).

When not to use:

  • If you just want to iterate a directory, use WalkDir instead.
  • If you want to use a text trie directly, use other crate too.

When to use:

  • You need to easily load a file type-aware trie from your filesystem and compare with other tries.

License: MIT