tina-self-hosted-demo
tina-self-hosted-demo copied to clipboard
onPut filename with subdirectories
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);