code: def exists(path):
      
      try:
          return path.expanduser().absolute().exists()
      except AttributeError:
          return os.path.exists(os.path.abspath(os.path.expanduser(str(path))))
docs: Determine if a Path or string is an existing path on the file system.