FileSystemProxy.DirectoryExists(String) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 디렉터리가 있는지를 반환 True 합니다.
public:
bool DirectoryExists(System::String ^ directory);
public bool DirectoryExists(string directory);
member this.DirectoryExists : string -> bool
Public Function DirectoryExists (directory As String) As Boolean
매개 변수
- directory
- String
디렉터리의 경로입니다.
반품
예제
이 예제에서는 디렉터리가 C:\backup\logs 있는지 여부를 확인하고 해당 속성을 확인합니다.
If My.Computer.FileSystem.DirectoryExists("C:\backup\logs") Then
Dim logInfo = My.Computer.FileSystem.GetDirectoryInfo(
"C:\backup\logs")
End If
적용 대상
추가 정보
- 개체(Visual Basic)
Visual Basic - 연습: Visual Basic에서 파일 및 디렉터리 조작