Two separate issues, the first is just documentation.
1/ Typical statement regarding /Sn: "If you specify a number after the /S, PDIR will limit the subdirectory recursion to that number. For example, if you have a directory tree "\a\b\c\d\e", /S2 will only affect the "a", "b", and "c" directories." In fact, the example shows that n+1 levels of subdirectories are reported. There is no "0th recursion".
2/ /S0 is interpreted as /S in both DIR and PDIR. For example, the command *dir/b/s0/a:d" in a test directory hierarchy reports:
F:\TEST\a
F:\TEST\b
F:\TEST\c
F:\TEST\h
F:\TEST\c\d
F:\TEST\c\f
F:\TEST\c\d\e
F:\TEST\c\f\g
F:\TEST\h\i
F:\TEST\h\i\j
F:\TEST\h\i\j\k
F:\TEST\h\i\j\k\l
TREE /S0 reports only the top level subdirectories of its start point. I have not tested other commands, esp. COPY and its relatives, nor DEL and its relatives.
Note: V9 processes /S0 consistently with /S1, /S2, etc.
1/ Typical statement regarding /Sn: "If you specify a number after the /S, PDIR will limit the subdirectory recursion to that number. For example, if you have a directory tree "\a\b\c\d\e", /S2 will only affect the "a", "b", and "c" directories." In fact, the example shows that n+1 levels of subdirectories are reported. There is no "0th recursion".
2/ /S0 is interpreted as /S in both DIR and PDIR. For example, the command *dir/b/s0/a:d" in a test directory hierarchy reports:
F:\TEST\a
F:\TEST\b
F:\TEST\c
F:\TEST\h
F:\TEST\c\d
F:\TEST\c\f
F:\TEST\c\d\e
F:\TEST\c\f\g
F:\TEST\h\i
F:\TEST\h\i\j
F:\TEST\h\i\j\k
F:\TEST\h\i\j\k\l
TREE /S0 reports only the top level subdirectories of its start point. I have not tested other commands, esp. COPY and its relatives, nor DEL and its relatives.
Note: V9 processes /S0 consistently with /S1, /S2, etc.