trys / sergey

A tiny lil' static site generator
https://sergey.trysmudford.com
MIT License
302 stars 39 forks source link

Deletes folder and can't recreate it #68

Open karneaud opened 2 years ago

karneaud commented 2 years ago

When using sergey to copy over static files and folders I get the error

node:internal/process/promises:246

          triggerUncaughtException(err, true /* fromPromise */);

          ^

[Error: ENOENT: no such file or directory, copyfile './src/README.md' -> './src/../public/README.md'] {

  errno: -2,

  code: 'ENOENT',

  syscall: 'copyfile',

  path: './src/README.md',

  dest: './src/../public/README.md'

}

Node.js v17.3.0

error Command failed with exit code 1.

because sergey empties the output folder to copy over the files but for some reason does not try to recreate the folders.

Can sergey NOT delete folder but just files?