Android
[Android] File 체크 File exists()
bryan.oh
2020. 5. 4. 22:54
반응형
안드로이드 파일 존재 여부 체크
File 의 exists() 메소드를 사용하면 됩니다.
String filePath = "your/file/path";
if(new File(filePath).exists()) {
// 파일 있음
}else{
// 파일이 없음
}
간단하쥬?
728x90
반응형