According to mozdevice: Returns whether dirpath exists and is a directory on the device file system. We are not checking here if this is a directory.