def sync_folder_to_container(self, folder_path, container, delete=False,
            include_hidden=False, ignore=None, ignore_timestamps=False,
            object_prefix="", verbose=False):
        cont = self.get_container(container)
        self._local_files = []
        # Load a list of all the remote objects so we don't have to keep
        # hitting the service
        if verbose:
            log = logging.getLogger("pyrax")
            log.info("Loading remote object list (prefix=%s)", object_prefix)
        data = cont.get_objects(prefix=object_prefix, full_listing=True)
        self._remote_files = dict((d.name, d) for d in data)
        self._sync_summary = {"total": 0,
                "uploaded": 0,
                "ignored": 0,
                "older": 0,
                "duplicate": 0,
                "failed": 0,
                "failure_reasons": [],
                "deleted": 0,
                }
        self._sync_folder_to_container(folder_path, cont, prefix="",
                delete=delete, include_hidden=include_hidden, ignore=ignore,
                ignore_timestamps=ignore_timestamps,
                object_prefix=object_prefix, verbose=verbose)
        # Unset the _remote_files
        self._remote_files = None
        if verbose:
            # Log the summary
            summary = self._sync_summary
            log.info("Folder sync completed at %s" % time.ctime())
            log.info("  Total files processed: %s" % summary["total"])
            log.info("  Number Uploaded: %s" % summary["uploaded"])
            log.info("  Number Ignored: %s" % summary["ignored"])
            log.info("  Number Skipped (older): %s" % summary["older"])
            log.info("  Number Skipped (dupe): %s" % summary["duplicate"])
            log.info("  Number Deleted: %s" % summary["deleted"])
            log.info("  Number Failed: %s" % summary["failed"])
            if summary["failed"]:
                for reason in summary["failure_reasons"]:
                    log.info("  Reason: %s" % reason)
Compares the contents of the specified folder, and checks to make sure
dataset/ETHPy150Open rackspace/pyrax/pyrax/object_storage.py/StorageClient.sync_folder_to_container