示例#1
0
        /// <summary>
        /// Creates a symlink between destinationPath and sourcePath (Mac version).
        /// </summary>
        /// <param name="sourcePath"></param>
        /// <param name="destinationPath"></param>
        private static void CreateLinkMac(string sourcePath, string destinationPath)
        {
            sourcePath      = sourcePath.Replace(" ", "\\ ");
            destinationPath = destinationPath.Replace(" ", "\\ ");
            var command = $"ln -s {sourcePath} {destinationPath}";

            Debug.Log("Mac hard link " + command);

            ClonesManager.ExecuteBashCommand(command);
        }