This commit is contained in:
lollipopkit
2023-06-03 21:15:26 +08:00
parent 8c25b5e60b
commit 261b8e9d29
9 changed files with 49 additions and 36 deletions

View File

@@ -180,11 +180,9 @@ class _SFTPDownloadedPageState extends State<SFTPDownloadedPage> {
return;
}
final f = File(file.absolute.path);
final data = await f.readAsString();
final result = await AppRoute(
EditorPage(
initCode: data,
path: fileName,
path: file.absolute.path,
),
'sftp dled editor',
).go<String>(context);

View File

@@ -328,6 +328,7 @@ class _SFTPPageState extends State<SFTPPage> {
)));
return;
}
context.pop();
final remotePath = _getRemotePath(name);
final localPath = await _getLocalPath(remotePath);