How do I get a trailing backslash from "TREE" or "DIR"? The only setting I could find in OPTIONs was for trailing backslash on command line completion.
Here's my structure.
And here are my results.
Here's what I'm looking for
I don't see an existing command line switch for it on either command. Am I missing a setting somewhere or should I reference this in "Suggestions"?
As a side note. I like seeing the difference of using the BFS vs DFS representation between TREE and DIR, respectively.
Here's my structure.
Code:
[C:\test] $ tree /f
C:\test
├──dir1
│ ├ file1a
│ ├ file1b
│ └ file1c
├──dir2
│ ├ file2a
│ ├ file2b
│ └ file2c
└──dir3
├ file3a
├ file3b
└ file3c
Code:
[C:\test] $ tree /b /f
C:\test
C:\test\dir1
C:\test\dir1\file1a
C:\test\dir1\file1b
C:\test\dir1\file1c
C:\test\dir2
C:\test\dir2\file2a
C:\test\dir2\file2b
C:\test\dir2\file2c
C:\test\dir3
C:\test\dir3\file3a
C:\test\dir3\file3b
C:\test\dir3\file3c
[C:\test] $ dir /b /s
C:\test\dir1
C:\test\dir2
C:\test\dir3
C:\test\dir1\file1a
C:\test\dir1\file1b
C:\test\dir1\file1c
C:\test\dir2\file2a
C:\test\dir2\file2b
C:\test\dir2\file2c
C:\test\dir3\file3a
C:\test\dir3\file3b
C:\test\dir3\file3c
Code:
[C:\test] $ tree /b /f /showmebackslashes
C:\test\
C:\test\dir1\
C:\test\dir1\file1a
C:\test\dir1\file1b
C:\test\dir1\file1c
C:\test\dir2\
C:\test\dir2\file2a
C:\test\dir2\file2b
C:\test\dir2\file2c
C:\test\dir3\
C:\test\dir3\file3a
C:\test\dir3\file3b
C:\test\dir3\file3c
[C:\test] $ dir /b /s /showmebackslashes
C:\test\dir1\
C:\test\dir2\
C:\test\dir3\
C:\test\dir1\file1a
C:\test\dir1\file1b
C:\test\dir1\file1c
C:\test\dir2\file2a
C:\test\dir2\file2b
C:\test\dir2\file2c
C:\test\dir3\file3a
C:\test\dir3\file3b
C:\test\dir3\file3c
Code:
[C:\test] $ tree /?
Display a graphical directory tree.
TREE [[/A:[[-][+]rhsdaecjot] /A /B /D /F /H /N[j] /O:[-]adegnrstu /P /S[n] /T[:acw] /Z] dir...
dir: Directory to use as the start of the tree
/A:(ttribute select) /H(idden directories)
/A(SCII) /P(ause)
/B(are) /Sn (subdirectory level)
/D(escriptions) /T(ime and date)
/F(iles) /Z (size)
[C:\test] $ dir /?
Display information about files and subdirectories.
DIR [/: /124 /A[[:][-][+]rhsdaecjot] /BCDEFGH /HL /I"text" /JKLM /N[defhjlsv] /O[[:][-]adeginorsux] /PQR /Sn /
T[:acw[u]] /U[12] /VWXZ] [file...]
/: (show streams) /L(ower case)
/1 (one column) /M (suppress footer)
/2 (two columns) /N (LFN format)
/4 (four columns) /O(rder)
/A(ttribute select) /P(ause)
/B(are) /Q (display owner)
/C(ompression) /R (disable wrap)
/D(isable color coding) /S(ubdirectories)
/E (upper case) /T (aTtribute) or (Time)
/F(ull path) /U (sUmmary information)
/G (allocated size) /V(ertical sort)
/H(ide dots) /W(ide)
/I (match descriptions) /X (display short names)
/J(ustify names) /Z (use FAT format)
/K (suppress header)
As a side note. I like seeing the difference of using the BFS vs DFS representation between TREE and DIR, respectively.