Get objects.

        Certain upload clients may add a 0-byte object (e.g., ``FOLDER`` object
        for path ``path/to/FOLDER`` - ``path/to/FOLDER/FOLDER``). We add an
        extra +1 limit query and ignore any such file objects.

def get_objects(self, path, marker=None,
                    limit=settings.CLOUD_BROWSER_DEFAULT_LIST_LIMIT):
        """Get objects.

        Certain upload clients may add a 0-byte object (e.g., ``FOLDER`` object
        for path ``path/to/FOLDER`` - ``path/to/FOLDER/FOLDER``). We add an
        extra +1 limit query and ignore any such file objects.
        """
        # Get basename of implied folder.
        folder = path.split(SEP)[-1]

        # Query extra objects, then strip 0-byte dummy object if present.
        objs = super(GsContainer, self).get_objects(path, marker, limit + 1)
        objs = [o for o in objs if not (o.size == 0 and o.name == folder)]

        return objs[:limit]