removeDirectory method

void removeDirectory(
  1. String path
)

Removes a directory if it exists

path - Directory path to remove

Implementation

void removeDirectory(String path) {
  if (exists(path)) {
    deleteDir(path);
  }
}