code: def check_target(target_path):
      
  
      if not path.exists(target_path):
          return
  
      with scandir(target_path) as d:
          for entry in d:
              if not entry.name.startswith('.'):
                  fail(f'Target directory "{target_path}" is not empty')
docs: Checks that the target path is not empty