Add mimetype filter to getDirectoryContent function