투케이2K

270. (TWOK/ERROR) [Android/Java] FileOutputStream crashes with open failed: EISDIR (Is a directory) 본문

투케이2K 에러관리

270. (TWOK/ERROR) [Android/Java] FileOutputStream crashes with open failed: EISDIR (Is a directory)

투케이2K 2024. 8. 26. 16:41
반응형

[환경 설정 및 설명]

프로그램 : AndroidStudio

설 명 : [Android/Java] FileOutputStream crashes with open failed: EISDIR (Is a directory)

 

[에러 원인]

1. FileOutputStream 파일 쓰기 수행 시 정의 된 경로가 정확하지 않아 파일 저장을 할 수 없어 발생 하는 이슈

 

[해결 방법]

1. 특정 파일 디렉토리 접근 권한이 정상 부여 되어 있는지 확인

2. 특정 파일 디렉토리가 존재하는 지 확인 (File exists)

3. 세부 파일 명칭 (ex : test.txt) 이 정의 되어 있는지 확인


 

반응형
Comments