feat(sftp): add SFTPv3 protocol support (#2875)

Co-authored-by: houseme <housemecn@gmail.com>
This commit is contained in:
escapecode
2026-05-10 04:48:42 +01:00
committed by GitHub
parent 8892cbbdd7
commit 96b293bf8a
44 changed files with 16555 additions and 155 deletions
+7 -2
View File
@@ -32,8 +32,13 @@ impl ProtocolTestEnvironment {
/// Create a new test environment
/// This environment won't stop any server when dropped
pub fn new() -> Result<Self, Box<dyn std::error::Error + Send + Sync>> {
let temp_dir = format!("/tmp/rustfs_protocol_test_{}", uuid::Uuid::new_v4());
std::fs::create_dir_all(&temp_dir)?;
let mut path = std::env::temp_dir();
path.push(format!("rustfs_protocol_test_{}", uuid::Uuid::new_v4()));
std::fs::create_dir_all(&path)?;
let temp_dir = path
.to_str()
.ok_or_else(|| format!("temp dir path is not utf-8: {}", path.display()))?
.to_string();
Ok(Self { temp_dir })
}