Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _delete_po_future(self, delete_path):
future = STAGING_THREAD.submit(shutil.rmtree, delete_path)
ret = yield future
raise gen.Return(ret)
def _copy_po_future(self, src_path, target_path):
future = STAGING_THREAD.submit(
copy_from_local, src_path, target_path, is_dir=True
)
ret = yield future
raise gen.Return(ret)