mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
13 lines
293 B
Dart
13 lines
293 B
Dart
import 'dart:io';
|
|
|
|
import 'package:path_provider/path_provider.dart';
|
|
|
|
Future<Directory> get sftpDownloadDir async {
|
|
final docDir = await getApplicationDocumentsDirectory();
|
|
final dir = Directory('${docDir.path}/sftp');
|
|
if (!dir.existsSync()) {
|
|
dir.createSync();
|
|
}
|
|
return dir;
|
|
}
|