Exemple #1
0
        public void ChangeName(string newName, string path)
        {
            string fileLocation = StringOperations.GetFilePathWithoutName(path);
            string newNamePath  = fileLocation + newName + Extension;

            try
            {
                File.Move(FullName, newNamePath);
            }
            catch (IOException)
            {
                Console.WriteLine("File already exist");
            }
        }