Check if directory exist on android's sdcard

前端 未结 6 717
时光说笑
时光说笑 2020-12-24 05:01

How do I check if a directory exist on the sdcard in android?

6条回答
  •  甜味超标
    2020-12-24 05:28

    I've made my mistake about checking file/ directory. Indeed, you just need to call isFile() or isDirectory(). Here is the docs

    You don't need to call exists() if you ever call isFile() or isDirectory().

提交回复
热议问题