跳至主要内容

copy_path

copy_path(path_src: Union[str, Path], path_dst: Union[str, Path]) -> None

  • 說明:複製檔案/目錄。

  • 參數

    • path_src (path_src: Union[str, Path]):要複製的檔案/目錄。
    • path_dst (path_dst: Union[str, Path]):複製後的檔案/目錄。
  • 範例

    import capybara as cb

    path_src = '/path/to/your/source'
    path_dst = '/path/to/your/destination'
    cb.copy_path(path_src, path_dst)