mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 23:34:24 +01:00
11 lines
294 B
Dart
11 lines
294 B
Dart
import 'dart:io';
|
|
|
|
import 'package:path_provider/path_provider.dart';
|
|
|
|
Future<Directory> get docDir async => await getApplicationDocumentsDirectory();
|
|
|
|
Future<Directory> get sftpDownloadDir async {
|
|
final dir = Directory('${(await docDir).path}/sftp');
|
|
return dir.create(recursive: true);
|
|
}
|