pull/5370/head
filip mertens 3 years ago committed by yann300
parent 69ff78cd1f
commit a9c1f995b4
  1. 1
      apps/remix-ide/src/app/files/filesystems/fileSystemUtility.ts
  2. 1
      libs/remix-ui/home-tab/src/lib/remix-ui-home-tab.tsx

@ -43,6 +43,7 @@ export class fileSystemUtility {
downloadBackup = async (fs: fileSystem) => {
try {
const zip = new JSZip()
zip.file("readme.txt", "This is a Remix backup file.\nThis zip should be used by the restore backup tool in Remix.\nThe .workspaces directory contains your workspaces.")
await fs.checkWorkspaces()
await this.copyFolderToJson('/', null, null, fs.fs, ({ path, content }) => {
zip.file(path, content)

@ -197,6 +197,7 @@ export const RemixUiHomeTab = (props: RemixUiHomeTabProps) => {
try {
plugin.call('notification', 'toast', 'preparing files for download, please wait..')
const zip = new JSZip()
zip.file("readme.txt", "This is a Remix backup file.\nThis zip should be used by the restore backup tool in Remix.\nThe .workspaces directory contains your workspaces.")
const browserProvider = fileManager.getProvider('browser')
await browserProvider.copyFolderToJson('/', ({ path, content }) => {
zip.file(path, content)

Loading…
Cancel
Save