Commit f7926284 authored by yann300's avatar yann300

still create workspace

parent 4e242bc6
......@@ -27,10 +27,10 @@ export async function migrateToWorkspace (fileManager, filePanel) {
const files = await browserProvider.copyFolderToJson('/')
console.log(files)
const workspaceName = 'workspace_migrated_' + Date.now()
await filePanel.processCreateWorkspace(workspaceName)
filePanel.getWorkspaces() // refresh list
if (Object.keys(files).length > 0) {
const workspacePath = joinPath('browser', workspaceProvider.workspacesPath, workspaceName)
await filePanel.processCreateWorkspace(workspaceName)
filePanel.getWorkspaces() // refresh list
await populateWorkspace(workspacePath, files, browserProvider)
}
return workspaceName
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment