class_docstr: This policy only uploads files now.
class_docstr_tok: ["This","policy","only","uploads","files","now","."]
code: def on_modified(self, force: bool = False) -> None:
      # only upload if we've never uploaded or when .save is called
      if self._last_sync is None or force:
          self._file_pusher.file_changed(self.save_name, self.file_path)
          self._last_sync = os.path.getmtime(self.file_path)
  
imports: import abc
  import fnmatch
  import glob
  import logging
  import os
  import queue
  import time
  from typing import TYPE_CHECKING, Any, Mapping, MutableMapping, MutableSet, Optional
  from wandb import util
  from wandb.sdk.interface.interface import GlobStr
  from wandb.sdk.lib.paths import LogicalPath
label_desc: Use image node_id 1 for calling the PolicyNow obj's underlying member method code with example usage: obj.on_modified(force) without return types