app_dirs 0.2.0 app_dirs: ^0.2.0 copied to clipboard
A library to locate common directories using platform-specific conventions.
// 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}');
}