Skip to content

Commit 5ecfdfb

Browse files
committed
Add shutdown method for AsyncSftp
1 parent 262c0ce commit 5ecfdfb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

async-ssh2-lite/src/sftp.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,12 @@ where
159159
.rw_with(|| self.inner.unlink(file), &self.sess)
160160
.await
161161
}
162+
163+
pub async fn shutdown(&mut self) -> Result<(), Error> {
164+
self.stream
165+
.rw_with(|| self.inner.shutdown(), &self.sess)
166+
.await
167+
}
162168
}
163169

164170
//

0 commit comments

Comments
 (0)