1
0
mirror of https://github.com/ARM-software/devlib.git synced 2024-10-06 10:50:51 +01:00

target: Clean up tmp files afer pulling

This commit is contained in:
Marc Bonnici 2018-01-08 14:55:11 +00:00 committed by setrofim
parent 54d6a6d39d
commit 853bdff936

View File

@ -295,6 +295,7 @@ class Target(object):
self.execute("cp -r '{}' '{}'".format(source, device_tempfile), as_root=True)
self.execute("chmod 0644 '{}'".format(device_tempfile), as_root=True)
self.conn.pull(device_tempfile, dest, timeout=timeout)
self.execute("rm -r '{}'".format(device_tempfile), as_root=True)
def get_directory(self, source_dir, dest):
""" Pull a directory from the device, after compressing dir """