diff --git a/src/pages/content/scrapeFilesNames.ts b/src/pages/content/scrapeFilesNames.ts index eee455e..6ac6cf3 100644 --- a/src/pages/content/scrapeFilesNames.ts +++ b/src/pages/content/scrapeFilesNames.ts @@ -45,7 +45,7 @@ function generateCommandLine(dirName: string | undefined, fileNames: string[]): const subDirs = new Set(); if (dirName === undefined) return (commandLine = "No files or dirs got found."); - commandLine = `mkdir "${dirName}" && cd "${dirName}" && touch README.md `; + commandLine = `mkdir -p "${dirName}" && cd "${dirName}" && touch README.md `; fileNames.forEach((fileName) => { const parts = fileName.split("/");