Create directories during gist import

pull/1185/head
ioedeveloper 4 years ago
parent c571400399
commit 7871fae68e
  1. 4
      apps/remix-ide/src/lib/gist-handler.js

@ -54,7 +54,9 @@ function GistHandler (_window) {
} }
const obj = {} const obj = {}
Object.keys(data.files).forEach((element) => { Object.keys(data.files).forEach((element) => {
obj['/' + 'gist-' + gistId + '/' + element] = data.files[element] const path = element.replace('...', '/')
obj['/' + 'gist-' + gistId + '/' + path] = data.files[element]
}) })
fileManager.setBatchFiles(obj, 'workspace', true, (errorLoadingFile) => { fileManager.setBatchFiles(obj, 'workspace', true, (errorLoadingFile) => {
if (!errorLoadingFile) { if (!errorLoadingFile) {

Loading…
Cancel
Save