'Test directory listing in sleuthkit.'

def testRecursiveImages(self):

    p3 = rdf_paths.PathSpec(path='/home/a.txt', pathtype=rdf_paths.PathSpec.PathType.TSK)
    p2 = rdf_paths.PathSpec(path='/home/image2.img', pathtype=rdf_paths.PathSpec.PathType.TSK)
    p1 = rdf_paths.PathSpec(path=os.path.join(self.base_path, 'test_img.dd'), pathtype=rdf_paths.PathSpec.PathType.OS)
    p2.Append(p3)
    p1.Append(p2)
    f = vfs.VFSOpen(p1)
    self.assertEqual(f.read(3), 'yay')
