Path provider

️ Project moved to new repository

The Aurora OS implementation of path_provider. Documentation for setting permissions can be found here.

  • getTemporaryDirectory - Directory location where user-specific non-essential (cached) data should be written
  • getApplicationSupportDirectory - Directory where the application may place application support files.
  • getLibraryDirectory
  • getApplicationDocumentsDirectory - Directory containing user document files.
  • getExternalStorageDirectory
  • getExternalCacheDirectories
  • getExternalStorageDirectories - There is no concept of External in Aurora OS, but this interface allows you to get the pictures/music/movies directory
  • getDownloadsDirectory- Directory for user's downloaded files.

Usage

You have to include path_provider as dependencies in your pubspec.yaml file.

pubspec.yaml

dependencies:
  path_provider: ^2.1.5

*.dart

import 'package:path_provider/path_provider.dart';

final Directory tempDir = await getTemporaryDirectory();
final Directory appDocumentsDir = await getApplicationDocumentsDirectory();
final Directory? downloadsDir = await getDownloadsDirectory();