We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7f9966 commit fbd5befCopy full SHA for fbd5bef
Sources/SSH/SCP.swift
@@ -17,7 +17,7 @@ public extension SSH {
17
/// - Returns: A `Bool` indicating whether the file was successfully sent.
18
func send(local: String, remote: String, permissions: FilePermissions = .default, sftp: Bool = false, progress: @escaping (_ send: Int) -> Bool = { _ in true }) async -> Bool {
19
if sftp {
20
- await upload(local: local, remote: remote, permissions: permissions, progress: progress)
+ return await upload(local: local, remote: remote, permissions: permissions, progress: progress)
21
}
22
guard let stream = InputStream(fileAtPath: local) else {
23
return false
0 commit comments