message: fix: Fixed deleting unversioned folders with nested files
diff: @@ -170,15 +170,15 @@ export function isReadOnly(operation: Operation): boolean {
  * @see https://stackoverflow.com/a/42505874/3027390
  */
  export async function deleteDirectory(dirPath: string): Promise<void> {
  - if (await exists(dirPath) && (await lstat(dirPath)).isDirectory()) {
  - (await readdir(dirPath)).forEach(async (entry: string) => {
  + if ((await exists(dirPath)) && (await lstat(dirPath)).isDirectory()) {
  + await Promise.all((await readdir(dirPath)).map(async (entry: string) => {
  const entryPath = path.join(dirPath, entry);
  if ((await lstat(entryPath)).isDirectory()) {
  - deleteDirectory(entryPath);
  + await deleteDirectory(entryPath);
  } else {
  await unlink(entryPath);
  }
  - });
  + }));
  await rmdir(dirPath);
  }
  }
  