lengthSync_ method

int lengthSync_()

Returns size the File in bytes. Returns 0 if the File does not exist.

Implementation

int lengthSync_() {
  final file = File(addPrefix(path));
  try {
    if (file.existsSync_()) {
      return file.lengthSync();
    }
  } catch (exception, stacktrace) {
    print(exception.toString());
    print(stacktrace.toString());
  }
  return 0;
}