Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update comment
  • Loading branch information
collinjackson committed Aug 26, 2019
commit 3b59eb443719d7070ef617e14b8cc09a09ae53c8
21 changes: 2 additions & 19 deletions packages/path_provider/lib/path_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,25 +50,8 @@ Future<Directory> getApplicationSupportDirectory() async {
return Directory(path);
}

/// Path to the directory where application can store
/// `persistent, backed up, not visible to the user` files, such as sqlite.db.
/// And others resource which want to keep and hide to user.
///
/// From link of [https://stackoverflow.com/questions/7268299/path-directory-usable-in-ios]:
/// 1. `NSDocumentDirectory` is `Documents/`
/// (persistent, backed up, may be visible in iTunes)
/// 2. `NSLibraryDirectory` is `Library/`
/// (persistent, backed up, not visible to the user)
/// 3. `NSCachesDirectory` is `Library/Caches/`
/// (not backed up, may be cleared by system)
///
/// From iOS Frameworks:
/// NSLibraryDirectory, // various documentation, support,
/// and configuration files, resources (Library)
/// NSApplicationSupportDirectory = 14, // location of application support
/// files (plug-ins, etc) (Library/Application Support)
///
///
/// Path to the directory where application can store files that are persistent,
/// backed up, and not visible to the user, such as sqlite.db.
Future<Directory> getLibraryDirectory() async {
final String path =
await _channel.invokeMethod<String>('getLibraryDirectory');
Expand Down