isEmpty function
Returns true if the passed pathToDirectory
is an
empty directory.
For large directories this operation can be expensive.
Implementation
bool isEmpty(String pathToDirectory) =>
// ignore: discarded_futures
waitForEx(core.isEmpty(pathToDirectory));