Skip to content

Bug Report | Empty directories are missing from the tree #3

@JosephLai241

Description

@JosephLai241

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.

Metadata

Metadata

Assignees

Labels

betaThis issue or feature should be resolved or implemented before an official releasebugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions