tinacms/tina-self-hosted-demo

onPut filename with subdirectories

Opened this issue · 0 comments

in this example, if the filename contains subdirectories, save will fail.
I decided it for myself by adding a line in the database:

  fs.mkdirSync(path.dirname(currentPath), { recursive: true });
  fs.writeFileSync(currentPath, value);