writeToDisk method

bool writeToDisk()

Implementation

bool writeToDisk() {
  var directoryDjIo = DirectoryDjIo(directoryDj: node);

  try {
    // start generating code
    directoryDjIo.create(path);
  } catch (e) {
    // something went wrong, returning false to indicate that operation failed
    rethrow;
    // return false;
  }

  // successfully wwritten generated code to disk
  return true;
}