Skip to content

Commit

Permalink
rm_from_symlinked_dir: use Path instead of string
Browse files Browse the repository at this point in the history
  • Loading branch information
cyqsimon committed Sep 16, 2024
1 parent a8e18a5 commit bfdbeb2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/rm_files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,13 @@ fn rm_from_symlinked_dir(
use std::os::windows::fs::symlink_dir;

// create symlink
const LINK_NAME: &str = "linked";
symlink_dir(target.path(), server.path().join(LINK_NAME))?;
let link: &Path = Path::new("linked");
symlink_dir(target.path(), server.path().join(link))?;

let files_through_link = &[FILES, DIRECTORIES]
let files_through_link = [FILES, DIRECTORIES]
.concat()
.iter()
.map(|name| format!("{LINK_NAME}/{name}"))
.map(|name| link.join(name))
.collect::<Vec<_>>();
if should_succeed {
assert_rm_ok(server.url(), &files_through_link)
Expand Down

0 comments on commit bfdbeb2

Please sign in to comment.