path_provider_ffi library

Classes

PathProvider
The interface that implementations of path_provider must implement.

Enums

StorageDirectory
Corresponds to constants defined in Androids android.os.Environment class.

Functions

getApplicationCacheDirectory() Directory
Path to a directory where the application may place application-specific cache files.
getApplicationDocumentsDirectory() Directory
Path to a directory where the application may place data that is user-generated, or that cannot otherwise be recreated by your application.
getApplicationSupportDirectory() Directory
Path to a directory where the application may place application support files.
getDownloadsDirectory() Directory?
Path to the directory where downloaded files can be stored.
getExternalCacheDirectories() List<Directory>?
Paths to directories where application specific cache data can be stored externally.
getExternalStorageDirectories({StorageDirectory? type}) List<Directory>?
Paths to directories where application specific data can be stored externally.
getExternalStorageDirectory() Directory?
Path to a directory where the application may access top level storage.
getLibraryDirectory() Directory
Path to the directory where application can store files that are persistent, backed up, and not visible to the user, such as sqlite.db.
getTemporaryDirectory() Directory
Path to the temporary directory on the device that is not backed up and is suitable for storing caches of downloaded files.

Exceptions / Errors

MissingPlatformDirectoryException
An exception thrown when a directory that should always be available on the current platform cannot be obtained.