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

appState: enable prepareLocalTransfer for WSL filesystem #352

Merged
merged 1 commit into from
Jan 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/state/appState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -289,12 +289,12 @@ export class AppState {
return Promise.resolve('')
}

// simply open the file if src is local FS
if (srcCache.getFS().name === 'local') {
// Simply open the file if src is a local FS
if (srcCache.getFS().name.startsWith('local')) {
const api = srcCache.getAPI()
return Promise.resolve(api.join(files[0].dir, files[0].fullname))
} else {
debugger
console.error('TODO: prepareLocalTransfer for non-local FS')
// TODO once we support non local FS

// first we need to get a FS for local
Expand Down