]> code.ossystems Code Review - openembedded-core.git/commit
devtool: file mover function that creates target dir
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Thu, 24 Sep 2015 10:03:34 +0000 (13:03 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 29 Sep 2015 14:15:47 +0000 (15:15 +0100)
commitc09e5b11225a673534594c3642ceead3eb5653a3
tree2e07be5a8a444ffbe2cd94d5a9f691a8c425e475
parent183812e60e1dce09c77b41a5a927ab7fb6fdcf9d
devtool: file mover function that creates target dir

Helper function for replacing a pattern like:
  target_dir = os.path.dirname(target)
  bb.utils.mkdirhier(target_dir)
  shutil.move(source, target)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
scripts/lib/devtool/standard.py