You've already forked AstralRinth
forked from didirus/AstralRinth
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:
@@ -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