Do you want only directories in the list? If so, add the "-Directory" switch to the Get-ChildItem cmdlet.
If you want directories and files in the list, then this should help:
Get-ChildItem c:\junk -Recurse |
ForEach-Object {
if ($_.PSIsContainer){
$_.FullName
}
else{
$_.DirectoryName
}
}