nomad icon indicating copy to clipboard operation
nomad copied to clipboard

Bug Report | Empty directories are missing from the tree

Open JosephLai241 opened this issue 1 year ago • 0 comments

Describe The Bug

Empty directories are missing in the tree.

Expected Behavior

Empty directories absolutely should be included in trees.

Actual Behavior

nomad skips over all empty directories.

Steps To Reproduce

  • cd into a directory containing empty subdirectories (or run mkdir <DIRECTORY_NAME> and do not add any files into the new directory).
  • Run nd to display a tree visual of the directory's structure.
    • The empty subdirectory/subdirectories or the newly created empty subdirectory will not be included in the tree.

Traceback/Output

N/A

Additional Context

I need to revisit the ToTree trait in src/traverse/traits.rs since this trait is where the tree is built. I think it should (hopefully) be a simple fix once I find where the issue is occurring.

JosephLai241 avatar Aug 24 '22 16:08 JosephLai241