Remove SFTP download

This commit is contained in:
Junyuan Feng
2022-04-06 13:23:54 +08:00
parent f8201f9542
commit 00cfd0f88d
8 changed files with 144 additions and 136 deletions

12
lib/core/path.dart Normal file
View File

@@ -0,0 +1,12 @@
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;
}