Optionally let dir_tree
hide parent directories (like lsd --tree
)
#444
Labels
feature
a feature request or enhancement
I am writing a quarto book on data management, and I need to show a certain directory structure. The easiest way of course is to create this structure and then to use
fs::dir_tree()
to get it to show in the book, however this will show all my parent directories up until the quarto book root directory (because the working directory cannot be changed on a per-chunk basis, I tried that first).Coincidentally this is also the difference between
/bin/tree
andlsd --tree
(https://github.com/lsd-rs/lsd), so more people might prefer this format, see the example code below:Created on 2024-02-09 with reprex v2.0.2
If this is something that could be added with an option to the
dir_tree()
command, I'd be happy to create a pull requestThe text was updated successfully, but these errors were encountered: