mirror of
https://github.com/modrinth/code.git
synced 2026-08-27 10:04:52 +00:00
Change app-lib io::rename to io::rename_or_move (#3251)
Also add io::is_same_disk and io::create_dir Co-authored-by: Prospector <6166773+Prospector@users.noreply.github.com> Co-authored-by: Jai Agrawal <18202329+Geometrically@users.noreply.github.com>
This commit is contained in:
co-authored by
Prospector
Jai Agrawal
parent
701fef08f8
commit
a74b2da147
@@ -928,7 +928,8 @@ impl Profile {
|
||||
format!("{project_path}.disabled")
|
||||
};
|
||||
|
||||
io::rename(&path.join(project_path), &path.join(&new_path)).await?;
|
||||
io::rename_or_move(&path.join(project_path), &path.join(&new_path))
|
||||
.await?;
|
||||
|
||||
Ok(new_path)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user