W3cubDocs

/Dart 2

systemTemp property

Directory systemTemp

Gets the system temp directory.

Gets the directory provided by the operating system for creating temporary files and directories in. The location of the system temp directory is platform-dependent, and may be set by an environment variable.

Implementation

static Directory get systemTemp {
  final IOOverrides overrides = IOOverrides.current;
  if (overrides == null) {
    return _Directory.systemTemp;
  }
  return overrides.getSystemTempDirectory();
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-io/Directory/systemTemp.html