def path_entry(self, path):
        """
        The parsed data given a path, which is separated into its directory
        and entry name.
        """
        if path[0] != '/':
            return None
        path_parts = path.split('/')
        # Note that here the first element will be '' because it's before the
        # first separator.  That's OK, the join puts it back together.
        directory = '/'.join(path_parts[:-1])
        name = path_parts[-1]
        if directory not in self.listings:
            return None
        if name not in self.listings[directory]['entries']:
            return None
        return self.listings[directory]['entries'][name]
def path_entry ( self , path ) : if path [ 0 ] != '/' : return None path_parts = path . split ( '/' ) directory = '/' . join ( path_parts [ : - 1 ] ) name = path_parts [ - 1 ] if directory not in self . listings : return None if name not in self . listings [ directory ] [ 'entries' ] : return None return self . listings [ directory ] [ 'entries' ] [ name ]
The parsed data given a path, which is separated into its directory
        and entry name.