public static void CopyFile(string sourcePath, string targetPath) { if (File.Exists(sourcePath) == false) { return; } var directoryName = Path.GetDirectoryName(targetPath); CreateFolderIfNotExist(directoryName); if (IsFileAreEqual(sourcePath, targetPath) == false) { File.Copy(sourcePath, targetPath, false); UnityFileUtility.RefreshAsset(); } }