Skip to content

fix: Windows file browser drive switching#8

Merged
lyx-tec merged 2 commits into
mainfrom
fix/win-drives
Jun 4, 2026
Merged

fix: Windows file browser drive switching#8
lyx-tec merged 2 commits into
mainfrom
fix/win-drives

Conversation

@lyx-tec

@lyx-tec lyx-tec commented Jun 4, 2026

Copy link
Copy Markdown
Owner

Fixes #7

Changes

Backend (wshremote_file.go)

  • computeDirPart: returns empty string for Windows drive roots (C:, D:)
  • listDrives(): new function to enumerate drives via os.Stat
  • RemoteListEntriesCommand: empty path returns drive list
  • fileInfoInternal: empty path returns virtual Drives directory

Frontend

  • historyutil.ts: getParentDirectory handles backslash paths
  • preview-model.tsx: back button hidden at empty path; adds Drives bookmark
  • preview-directory.tsx: shows .. entry at drive root pointing to drives
  • waveutil.ts: formatRemoteUri handles empty path

lyx-tec added 2 commits June 4, 2026 22:54
- computeDirPart returns empty string for Windows drive roots

- Add listDrives() to enumerate available drives

- Handle empty path for drive listing in list/fileInfo commands

- Fix getParentDirectory for backslash paths

- Fix back button, bookmark, and parent entry for drives
@lyx-tec lyx-tec merged commit 94a282e into main Jun 4, 2026
4 of 6 checks passed
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

Successfully merging this pull request may close these issues.

Windows file browser cannot switch between drives (C:, D:, etc.)

1 participant