You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Ask for the directory path:Write-Host"Enter the directory path: "$directory=Read-Host$reversedDirectory=$directory-replace"/","\"# List of directories and files to ignore:$ignored=@(".git","node_modules",".next",".vscode")
# Loop over the directory items:Get-ChildItem$directory-Recurse |ForEach-Object {
# Check if the item is ignored:foreach ($ignorein$ignored) {
if ($_.FullName-like"*$ignore*") {
return
}
}
# If the item is not ignored, display it:Write-Host$_.FullName.Replace($directory,"").Replace($reversedDirectory,"")
}
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: