systemTemp property

Directory systemTemp

The system temp directory.

This is the directory provided by the operating system for creating temporary files and directories in. The location of the system temporary directory is platform-dependent, and may be controlled by an environment variable on some platforms.

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.dart.dev/stable/2.13.0/dart-io/Directory/systemTemp.html