-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
A drive with this name already exists #1029
Comments
I had this same error and corrected it by commenting out (add # at the beginning of the line) line 853 in Helpers.ps1. Then add this line just below it: if (!(Get-PSDrive -Name $Name -ErrorAction SilentlyContinue)) { This will fix you problem. Enjoy! |
@Badgerati - The true error is in the Test-PodePSDrive function. My response (above) is just a work around for now. THX. Keep up the good work! |
I saw this error only if relative path to folder was used, if absolute path is used - no issues |
Badgerati I think adding [DBG]: [Process:47918]: [Runspace40]: PS /PsF/Scripts/Tool>> $drive.Root
/PsF/Scripts/Tool/Logs
[DBG]: [Process:47918]: [Runspace40]: PS /PsF/Scripts/Tool>> $Path
/PsF/Scripts/Tool/./Logs
[DBG]: [Process:47918]: [Runspace40]: PS /PsF/Scripts/Tool>> $drive.Root -ieq $Path
False
[DBG]: [Process:47918]: [Runspace40]: PS /PsF/Scripts/Tool>> $drive.Root -ieq (Resolve-Path $Path)
True As @ittchmh mentioned using a full path is a good workaround, like: Add-PodeStaticRoute -Path '/logs' -Source (Join-Path (Get-PodeServerPath) 'Logs') |
Aah! Yes, you're both right! Adding a |
The above commit should now resolve this; I've tested locally where I could always get the error to trip, but no linger see it with the changes. I've also altered references of The main change is to add |
I was sure I'd fixed this one, but I just got the
A drive with name already exists
error again from testing Pode.Web - on linux.The text was updated successfully, but these errors were encountered: