one item at one line, like the dos command "Dir /B /S"
X:\path\to\sub\folder
X:\path\to\sub\folder\file.ext
X:\path\to\sub\folder\subfolder
X:\path\to\sub\folder\subfolder\file.ext
or with even more infos.
- - -
I wanted to use folderreport() like this with different info for folders and files:
Code: Select all
folderreport("dirs:{dir {fullname} \ |{fullname}|}", "r", , "r");
Wanted Result:
X:\path\to\sub\folder \
X:\path\to\sub\folder\file.ext
X:\path\to\sub\folder\subfolder \
X:\path\to\sub\folder\subfolder\file.extBut this doesn't work, that's becauseHelp > folderreport() wrote:Types "tree" and "dirs" support a format template.
The template is appended to the "dirs"/"tree" selector separated by a ":" (colon),
and it fully supports the syntax of the template argument in report.
- - -Admin wrote:folderreport("dirs: ... only returns dirs.
Wish
So the question is
can folderreport ("dirs:template") can get enhanced by reporting files too if wanted within "template"?
or can there be an new type -like "custom" or "report" ,
like an combination of "dirs:template" and "bCSV"
which reports folder and files AND fully supports the syntax of the template argument in report() ?
This would also help to get an CSV output with custom CSV-seperator other then always ";".
And then the "template"-option could be removed from "tree" and "dirs" type.
-
The other way would be to enhance report() with recursive option, which would be nice too.
But since folderreport() is there this wished feature now belongs to this command in first place, me think.
-
Since we can do an work around like:
$AllFolders = foldereport("dirs", "r",,"r");
ForEach($folder , $AllFolders, "<crlf>")
{ report( {dir | | } ) }
i think this is an minor issue.
XYplorer Beta Club