isDirEmptySync method

  1. @override
bool isDirEmptySync(
  1. String dirPath
)
override

Checks if the directory is empty.

Implementation

@override
bool isDirEmptySync(String dirPath) {
  return readdirSync(dirPath).isEmpty;
}