tina-self-hosted-demo icon indicating copy to clipboard operation
tina-self-hosted-demo copied to clipboard

onPut filename with subdirectories

Open applesin opened this issue 2 years ago • 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);

applesin avatar Feb 11 '23 16:02 applesin