Exemplo n.º 1
0
        private void PrepareDestinations()
        {
            if (Destination.Count == 0)
            {
                Destination.Add(".");
            }

            for (int i = 0; i < Destination.Count; i++)
            {
                if (IsDirectory(Destination[i]))
                {
                    //destination is current directory
                    if (string.IsNullOrWhiteSpace(Destination[i]) || Destination[i] == ".")
                    {
                        Destination[i] = Directory.GetCurrentDirectory();
                    }

                    // not a UNC Path
                    if (!Destination[i].StartsWith(@"\\"))
                    {
                        Destination[i] = Path.GetFullPath(Destination[i]);
                    }
                }
            }
        }