fixed listDirectory metadict call