VeriorPies/ParrelSync

[BUG] Clone can't be created when source-Path contains "Asset"

LoneSurvivor82 opened this issue · 1 comments

The source path of the project is this:
grafik

ClonesManager.cs contains this method which hardcode removes the Assets-Part:

public static string GetCurrentProjectPath()
{
return Application.dataPath.Replace("/Assets", "");
}

So the generated path will become

E:/NetHelpersGames/Unity/ProjectsTest/Realistic Car Controller Pro/Realistic Car Controller Pro_clone_0/Library

which is wrong and leads to a DirectoyNotFoundException.

It should at least check for a closing slash to prevent things like this.

Yeah that doesn't seem right, thanks for reporting it!