I have a very complex web app project I want to re-structure. Naturally, it consists of a considerable number of folders and sub-folders. I have a huge piece of paper ready to sketch a new structure on.
Now, I need paper printouts of the projects. Some directories I need in full detail including their files – the /library directory for example that contains core parts of the engine. Other directories, I need in much less detail, with just the sub-directories, or not even that.
I am on Windows and can use the tree command but that only gives me a full listing of the whole structure I then have to clean up by hand. I would much rather have a tool which I tell which directories I need in which depth, and in which I can save those settings.
Does anybody happen to know such a tool?
Edit: I have kind of sorted it out using the tree command, deleting the entries manually. To get what I wanted I would probably have to write a script of my own, which I can’t do right now. Any hints are still welcome.
I would use a bit of Powershell code for this
Take a look at this example and look at the help page for getChilItems (gci).
You can specify files to include and files not to include.
$DllFiles = gci “C:\Windows\System32” -recurse | ? {$_.extension -eq “.exe”}
Foreach ($Dll in $DllFiles) {
$Dll.name + “
t " + $DLL.CreationTime + "t ” + $Dll.Length$i++
}
Write-Host The total number of files is: $i
Here is an example of the exclude parameter
Get-ChildItem c:\scripts*.* -exclude .txt,.log
there is also an include parameter is that fits your needs better.