{"version":"0.2.102","anchor":"improved-directory-handling","canonical_anchor":"improved-directory-handling","heading":"Improved Directory Handling","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/0.2.102\/e\/improved-directory-handling","release_url":"https:\/\/changelogs.core-directive.com\/v\/0.2.102","markdown":"### Improved Directory Handling\n\nThe `isDirEmptySync` function now includes an existence check before checking if a directory is empty. This prevents errors when working with non-existent directories.\n\n`\/\/ Old behavior: Would error if directory doesn't exist\nfunction isDirEmptySync(path) {\n  return fs.isDirEmptySync(path);\n}\n\n\/\/ New behavior: Returns true for non-existent directories\nfunction isDirEmptySync(path) {\n  if (!fs.existsSync(path)) return true;\n  return fs.isDirEmptySync(path);\n}`"}