def upload_files(self, abspaths, relpaths, remote_objects):
for relpath in relpaths:<EOL><INDENT>abspath = [p for p in abspaths if p[len(self.file_root):] == relpath][<NUM_LIT:0>]<EOL>cloud_datetime = remote_objects[relpath] if relpath in remote_objects else None<EOL>local_datetime = datetime.datetime.utcfromtimestamp(os.stat(abspath).st_mtime)<EOL>if cloud_datetime and local_datetime < cloud_datetime:<EOL><INDENT>self.skip_count += <NUM_LIT:1><EOL>if not self.quiet:<EOL><INDENT>print("<STR_LIT>".format(relpath))<EOL><DEDENT>continue<EOL><DEDENT>if relpath in remote_objects:<EOL><INDENT>self.update_count += <NUM_LIT:1><EOL><DEDENT>else:<EOL><INDENT>self.create_count += <NUM_LIT:1><EOL><DEDENT>self.upload_file(abspath, relpath)<EOL><DEDENT>
Determines files to be uploaded and call ``upload_file`` on each.