예제 #1
0
 public static void TryChangePathAbsolute(string input, string[] data)
 {
     if (data.Length == 2)
     {
         string absolutePath = data[1];
         IOManager.ChangeCurrentDirectoryAbsolute(absolutePath);
     }
     else
     {
         OutputWriter.DisplayExeptionWrongInput(input);
     }
 }
예제 #2
0
    static void Main()
    {
        //IOManager.ChangeCurrentDirectoryAbsolute(@"C:\Windows");
        //IOManager.TraverseDirectory(20);
        //StudentsRepository.InitializeData();
        //StudentsRepository.GetStudentScoresFromCourse("Unity", "Ivan");
        //StudentsRepository.GetAllStudentsFromCourse("C#_advanced");
        //Tester.CompareContent(@"C:\Users\Nik\iCloudDrive\C# Advanced\BashSoft\FilesForTest\t1.txt",
        //@"C:\Users\Nik\iCloudDrive\C# Advanced\BashSoft\FilesForTest\t2.txt");// WORKING!  :)
        //IOManager.CreateDirectoryInCurrentFolder("11");//working
        //IOManager.TraverseDirectory(0);//working

        // IOManager.ChangeCurrentDirectoryRelative(".."); //may be working?

        IOManager.ChangeCurrentDirectoryAbsolute("c:\\Windows"); //may be working?
        IOManager.TraverseDirectory(20);
        ;
    }
    public static void TryChangePathAbsolute(string input, string[] data)
    {
        string absolutePath = data[1];

        IOManager.ChangeCurrentDirectoryAbsolute(absolutePath);
    }