scriptimate icon indicating copy to clipboard operation
scriptimate copied to clipboard

Error if frames folder doesn't exist

Open abid-mujtaba opened this issue 2 years ago • 0 comments

Running the tool in a location where the frames/ sub-folder doesn't already exists results in the following error:

[Error: ENOENT: no such file or directory, stat './/frames'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'stat',
  path: './/frames'
}

This is probably caused by the fs.rmdir call on this line. The likely fix is to first check for existence before the folder is removed.

abid-mujtaba avatar Dec 29 '22 14:12 abid-mujtaba