From 8951c4326e94e37ef0ce0f0dda09bba6f6e822ef Mon Sep 17 00:00:00 2001 From: Nicolas Ramz Date: Fri, 20 Jan 2023 22:39:38 +0100 Subject: [PATCH] appState: enable prepareLocalTransfer for WSL filesystem --- src/state/appState.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/state/appState.tsx b/src/state/appState.tsx index d214d6e1..d54b53b8 100644 --- a/src/state/appState.tsx +++ b/src/state/appState.tsx @@ -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