EXISTS (1) 썸네일형 리스트형 [C#] 폴더 (디렉토리) 존재 여부 확인 class Lesson { public Lesson() { // 디렉토리 존재 여부 확인 bool isExists = IsDirExists(@"C:\MainDir\SubDir"); System.Console.WriteLine(isExists); } // 디렉토리 존재 여부 확인 private bool IsDirExists(string dirPath) { // 존재시 true , 비존재시 false return System.IO.Directory.Exists(dirPath); } } 설명 생략 2023.10.07 - [C#] - [C#] 폴더 (디렉토리) 생성 [C#] 폴더 (디렉토리) 생성 class Lesson { public Lesson() { // 메인디렉토리와 서브디렉토리 생성 CreateDir(.. 이전 1 다음