app_dirs 0.2.0 copy "app_dirs: ^0.2.0" to clipboard
app_dirs: ^0.2.0 copied to clipboard

A library to locate common directories using platform-specific conventions.

example/example.dart

// Copyright (c) 2023, Devon Carew.  Please see the AUTHORS file for details.
// All rights reserved. Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

import 'package:app_dirs/app_dirs.dart';

void main(List<String> args) {
  var dirs = Directories();

  print('base config directory: ${dirs.baseDirs.config}');
  print('base cache directory : ${dirs.baseDirs.cache}');

  var appDirs = dirs.appDirs(
    qualifier: 'dev',
    organization: 'dart-lang',
    application: 'dart',
  );

  print('app config directory : ${appDirs.config}');
  print('app cache directory  : ${appDirs.cache}');
}
4
likes
150
points
161
downloads

Publisher

verified publisherdevoncarew.org

Weekly Downloads

A library to locate common directories using platform-specific conventions.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on app_dirs