getTempPath method

String getTempPath()
inherited

Returns the path of the temp folder. The temp folder is used to store the converted files. Throws a FileSystemException if the temp folder is not found.

Implementation

String getTempPath() {
  final tempPath = path.normalize(Directory.systemTemp.path);

  if (Directory(tempPath).existsSync()) {
    return tempPath;
  } else {
    throw FileSystemException(
      'Temp folder not found.',
      tempPath,
    );
  }
}