title: Check if parent directory exists or not in java
body: <p>How do I check whether a parent directory is created or not before creating file in that directory? I can use file.exists() but it only checks if my file obj  is created and not my parent directory/parent path.</p>