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 4a13154 commit 00a3689Copy full SHA for 00a3689
src/ssh/scp.rs
@@ -796,6 +796,8 @@ mod test {
796
assert!(client
797
.create_dir(Path::new("mydir"), UnixPex::from(0o755))
798
.is_ok());
799
+ let p = PathBuf::from(format!("{}/mydir", client.pwd().unwrap().display()));
800
+ assert!(client.exists(&p).unwrap());
801
finalize_client(client);
802
}
803
src/utils/path.rs
@@ -36,9 +36,8 @@ pub fn absolutize(wrkdir: &Path, target: &Path) -> PathBuf {
36
true => target.to_path_buf(),
37
false => {
38
let mut p: PathBuf = wrkdir.to_path_buf();
39
- let fixed_path = resolve(target);
40
- p.push(fixed_path);
41
- p
+ p.push(target);
+ resolve(&p)
42
43
44
0 commit comments