Is there an API call on Android to get the path to the folder where the Camera app stores the recorded videos? I'm currently using this snippet but was wondering if there's a proper (cleaner) way to do this?

```
// check file path exists!
        File f = new File(Environment.getExternalStorageDirectory() + "/Videos");
        if (!f.isDirectory()) {
            f = new File(Environment.getExternalStorageDirectory() + "/DCIM");
            if (!f.isDirectory()) {
                f = new File(Environment.getExternalStorageDirectory() + "/");
            }
        }
        String path = f.getAbsolutePath().toString();

```

EDIT:

```
Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM)

```

returns 

```
/storage/emulated/0/DCIM

```

But,

```
| => adb shell
shell@d2can:/ $ cd /storage/emulated
shell@d2can:/storage/emulated $ ls
legacy
shell@d2can:/storage/emulated $ cd 0
/system/bin/sh: cd: /storage/emulated/0: No such file or directory
2|shell@d2can:/storage/emulated $ 

```

Bizarrely enough, if I actually go ahead and try to create files at that non-existent location (from within the android app), they do get created in `/sdcard/DCIM` !! Yet when inspecting the app variables with the debugger, they have the path as shown above - the invalid one.