From 3c6cce6b4c4e01e0725ac76954d2b780ecc8d6c6 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Wed, 8 Mar 2023 22:11:07 +0100 Subject: [PATCH] update doc --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index 87206d8..077523b 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ Features: * Index any directories in a catalog * Ability to search for files by name in the catalog * Ability to navigate through indexed data à la `ls` + * Support for fuse to mount the indexed data as a virtual filesystem * Handle archive files (zip, tar, ...) and index their content * Save catalog to json for easy versioning with git * Command line interface FTW @@ -73,6 +74,7 @@ See the [examples](#examples) for an overview of the available features. * [Index archive files](#index-archive-files) * [Walk indexed files with ls](#walk-indexed-files-with-ls) * [Find files](#find-files) + * [Mount catalog](#mount-catalog) * [Display entire hierarchy](#display-entire-hierarchy) * [Catalog graph](#catalog-graph) * [Edit storage](#edit-storage) @@ -185,6 +187,27 @@ searching: See the [examples](#examples) for more. +## Mount catalog + +The catalog can be mounted with [fuse](https://www.kernel.org/doc/html/next/filesystems/fuse.html) +and navigate like any filesystem. + +```bash +$ mkdir /tmp/mnt +$ catcli index -c github .github +$ catcli mount /tmp/mnt +$ ls -laR /tmp/mnt +drwxrwxrwx - user 8 Mar 22:08 github + +mnt/github: +.rwxrwxrwx 17 user 19 Oct 2022 FUNDING.yml +drwxrwxrwx - user 2 Mar 10:15 workflows + +mnt/github/workflows: +.rwxrwxrwx 691 user 19 Oct 2022 pypi-release.yml +.rwxrwxrwx 635 user 8 Mar 21:08 testing.yml +``` + ## Display entire hierarchy The entire catalog can be shown using the `ls -r` command.