refactor(sftp): Replace hard-coded path separators with Pfs.seperator (#993)

Unify the use of Pfs.seperator for handling file path separators to enhance cross-platform compatibility.
This commit is contained in:
GT610
2026-01-06 23:50:11 +08:00
committed by GitHub
parent 26efb8e185
commit cc300c141a
4 changed files with 10 additions and 6 deletions

View File

@@ -36,7 +36,7 @@ class SftpReqStatus {
late SftpWorker worker;
final Completer? completer;
String get fileName => req.localPath.split('/').last;
String get fileName => req.localPath.split(Pfs.seperator).last;
// status of the download
double? progress;