console.log('Oops! An error ocurred while performing copyFile operation.'+error)
}
}
constcopyFolder=(src:string,dest:string)=>{
constfileManager=state.fileManager
try{
fileManager.copyDir(src,dest)
}catch(error){
console.log('Oops! An error ocurred while performing copyDir operation.'+error)
}
}
constpublishToGist=(path?:string,type?:string)=>{
modal('Create a public gist',`Are you sure you want to anonymously publish all your files in the ${name} workspace as a public gist on github.com?`,'OK',()=>toGist(path,type),'Cancel',()=>{})