Title: get-childitem
Open Graph Title: get-childitem
X Title: get-childitem
Description: This is to resolve #5269 When get-childitem is ended with * and -recurse, we only include the parent path as search path if the given path is a itemcontainer. We will return null if the parent directory only contains 1 sub folder with no sub folder under that folder. As if the parent folder only contains 1 subfolder, "*" will be mapped to that subfolder, and since it doesn't contain any subfolder, return is null. However, the following scenario should also be included: Given path is not a itemcontainer but -file parameter is specified $Path='C:\temp' md "$Path\TestPS" md "$Path\TestPS\D1" "Test" > "$Path\TestPS\D1\File1.txt" get-childitem -path "$Path\TestPS" -File -Recurse Before fix: returns nothing After fix: File1.txt will be returned.
Open Graph Description: This is to resolve #5269 When get-childitem is ended with * and -recurse, we only include the parent path as search path if the given path is a itemcontainer. We will return null if the parent dire...
X Description: This is to resolve #5269 When get-childitem is ended with * and -recurse, we only include the parent path as search path if the given path is a itemcontainer. We will return null if the parent dire...
Opengraph URL: https://github.com/PowerShell/PowerShell/pull/5431
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:63351ca5-3781-04ce-fb26-2e4edfcbcd5a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A486:20E600:16C932:1F2B85:6A553484 |
| html-safe-nonce | 137b2a5bfc0a9d598288d588d2a8f4ebf7806e3391f9a15eddba09b65d53aabb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDg2OjIwRTYwMDoxNkM5MzI6MUYyQjg1OjZBNTUzNDg0IiwidmlzaXRvcl9pZCI6IjE3MTY5MzY5NDU1ODQ4MzU4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0c7380094aa64e0636bd5396ab5c946e403bca6187cc53cfe23e31a9ca49fd66 |
| hovercard-subject-tag | pull_request:152229197 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/PowerShell/PowerShell/pull/5431/files |
| twitter:image | https://avatars.githubusercontent.com/u/16246343?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/16246343?s=400&v=4 |
| og:image:alt | This is to resolve #5269 When get-childitem is ended with * and -recurse, we only include the parent path as search path if the given path is a itemcontainer. We will return null if the parent dire... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | fbd8fce4d63ac394c5405faa20aa50d5c9e56b979ac43ee1b26f8e7c47c4cd89 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cf96660b44878f418b09d3d6ecde00ad62332910 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width