Fixed the logic of some string operations to account for the case where the asset is inside a folder.
An error is returned if copying the asset to the variant directory fails: "Copying asset from {mainAssetPath} to variant path {newPrefabPath} failed."
https://jira.unity3d.com/browse/ADDR-1903 https://jira.unity3d.com/browse/ADDR-1904
Fixed the logic of some string operations to account for the case where the asset is inside a folder. An error is returned if copying the asset to the variant directory fails: "Copying asset from {mainAssetPath} to variant path {newPrefabPath} failed."