should the program check if a folder exists? And if not, then tell the user that there is no such folder. I found many examples explaining how to check if a file exists, but I need to know if a directory exists? All methods
boolean x = context.getExternalFilesDir("/nicknameOfUser/").exists(); Toast.makeText(context, "ExternalFilesDir : " + x, Toast.LENGTH_SHORT).show(); isAbsolute() , isDirectory() , isFile() , create a new path to the files - nicknameOfUser folder files - nicknameOfUser I don’t need them to be created, I just need the program to return if there is something on the specified path or not ...
How to do it? I think this is a standard question, but I can't understand ...