first commit
Build / Build for Android (push) Has been cancelled
Build / Build for iOS (push) Has been cancelled

This commit is contained in:
Zakaria
2026-05-18 14:15:38 -04:00
commit 1563409cb1
382 changed files with 45347 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import 'dart:io';
import 'package:path_provider/path_provider.dart';
import 'package:path/path.dart' as path_helper;
/// Returns the "internal storage" directory for songs (applicationDocumentsDirectory + /songs).
/// If it doesn't exist, the directory is created.
Future<Directory> getInternalSongDir() async {
// TODO: Start using support directory by default, keep this around for legacy
Directory appDir = await getApplicationDocumentsDirectory();
Directory songDir = Directory(path_helper.join(appDir.path, "songs"));
if (!await songDir.exists()) {
await songDir.create();
}
return songDir;
}