From d706886343de373d821c3c217cdeb94153806fa7 Mon Sep 17 00:00:00 2001 From: Noo6 <72285529+No06@users.noreply.github.com> Date: Thu, 14 Nov 2024 14:24:57 +0800 Subject: [PATCH] fix: sftp open file on windows (#633) --- lib/view/page/storage/sftp_mission.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/view/page/storage/sftp_mission.dart b/lib/view/page/storage/sftp_mission.dart index f4994cb03..67490fd2c 100644 --- a/lib/view/page/storage/sftp_mission.dart +++ b/lib/view/page/storage/sftp_mission.dart @@ -113,7 +113,7 @@ class _SftpMissionPageState extends State { children: [ IconButton( onPressed: () { - final idx = status.req.localPath.lastIndexOf('/'); + final idx = status.req.localPath.lastIndexOf(Pfs.seperator); final dir = status.req.localPath.substring(0, idx); LocalFilePage.route.go( context,