mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2026-02-23 16:45:27 +01:00
#84 fix: sftp upload
This commit is contained in:
@@ -126,8 +126,8 @@ Future<void> _upload(
|
||||
mainSendPort.send(SftpWorkerStatus.sshConnectted);
|
||||
|
||||
final localPath = req.localPath;
|
||||
final remotePath =
|
||||
req.remotePath + (getFileName(localPath) ?? 'srvbox_sftp_upload');
|
||||
final fileName = getFileName(localPath) ?? 'srvbox_sftp_upload';
|
||||
final remotePath = '${req.remotePath}/$fileName';
|
||||
final local = File(localPath);
|
||||
if (!await local.exists()) {
|
||||
mainSendPort.send(Exception('local file not exists'));
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
class BuildData {
|
||||
static const String name = "ServerBox";
|
||||
static const int build = 405;
|
||||
static const int build = 406;
|
||||
static const String engine = "3.10.6";
|
||||
static const String buildAt = "2023-08-02 23:07:25.944886";
|
||||
static const String buildAt = "2023-08-02 23:34:08.619104";
|
||||
static const int modifications = 2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user