tmp_path 1.2.0 copy "tmp_path: ^1.2.0" to clipboard
tmp_path: ^1.2.0 copied to clipboard

Generate a unique path in system temp directory.

tmp_path #

pub package Build Status

Generate a unique path in system temp directory. You can use it to create a temporary file or directory.

Usage #

import 'package:tmp_path/src/tmp_path.dart';

void main() {
  print(tmpPath());
  // /var/folders/q5/yvcxrtbn7mq5h4r4zvjhp_v40000gn/T/tmp_9c2dd26b67184afcb6d25bad068726c5

  print(tmpPath(prefix: 'test'));
  // /var/folders/q5/yvcxrtbn7mq5h4r4zvjhp_v40000gn/T/test_9a2895c181e94602912abe32b7eafed1

  print(tmpPath(parentDirectory: '/a/b/c'));
  // /a/b/c/tmp_c7ad03d6667044369cdf9d313f48ae98_1675502458003
}
1
likes
0
pub points
81%
popularity

Publisher

verified publisherflutter-cavalry.com

Generate a unique path in system temp directory.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

path, uuid

More

Packages that depend on tmp_path