Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle items in nested folders #1

Open
Startouf opened this issue Mar 31, 2022 · 0 comments
Open

Handle items in nested folders #1

Startouf opened this issue Mar 31, 2022 · 0 comments

Comments

@Startouf
Copy link

Currently the script raises errors when I have items in nested folders on metabase. I'm trying to add a recursive flag (mkdir -p) but it seems like fs.mkdirSync(fPath, { recursive: true }) does not work 🤔

vue.esm.js?a026:1906 Error: ENOENT: no such file or directory, mkdir '/Users/me/myapp/Collection (6)/States / User States (11)'

Trace

at Object.mkdirSync (fs.js:731)
    at _loop (tool-to-repostitory.js?8942:50)
    at createCollectionFolders (tool-to-repostitory.js?8942:15)
    at _loop (tool-to-repostitory.js?8942:56)
    at createCollectionFolders (tool-to-repostitory.js?8942:15)
    at _callee$ (tool-to-repostitory.js?8942:64)
    at tryCatch (runtime.js?96cf:62)
    at Generator.invoke [as _invoke] (runtime.js?96cf:296)
    at Generator.prototype.(:9080/anonymous function)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant