Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate Unc Paths in Database Where Only One Is Updated #127

Open
mattcargile opened this issue Jan 15, 2022 · 0 comments
Open

Duplicate Unc Paths in Database Where Only One Is Updated #127

mattcargile opened this issue Jan 15, 2022 · 0 comments

Comments

@mattcargile
Copy link

mattcargile commented Jan 15, 2022

Line below returns a path like \\server\path\to\file while the prompt function uses $pwd which returns Microsoft.PowerShell.Core\FileSystem::\\server\path\to\file

$QuickAccess.Namespace("shell:::{679f85cb-0220-4080-b29b-5540cc05aab6}").Items() |

Not sure how to handle. One one hand the below code could Resolve-Path or maybe append depending on powershell or pwsh environment. On the other, I worry about the Add-ZWeight overwriting previous weights with 0.

Get-FrequentFolders | ForEach-Object {
if (Test-Path $_) {
Add-ZWeight -Path $_ -Weight 0
}
}

P.S. Love the module alot. Would love to see these two pull requests discussed and pushed into a release.

#121
#109

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant