LoginSignup
0
1

More than 5 years have passed since last update.

python > link > dir_util.copy_tree() > update=1 > 取得済みはコピーしない?

Last updated at Posted at 2016-03-15

distutils.dir_util.copy_tree(src, dst[, preserve_mode=1, preserve_times=1, preserve_symlinks=0, update=0, verbose=0, dry_run=0])

update と verbose は copy_file() のものと同じです。


distutils.file_util.copy_file(src, dst[, preserve_mode=1, preserve_times=1, update=0, link=None, verbose=0, dry_run=0])

update が真の場合、 src は dst が存在しない場合か、dst が存在して src より古い場合にだけコピーします。

フォルダのコピーですでに取得済みのコピーをスキップするには update を1にすればよさそうだ。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1