Package portage :: Package util :: Package _async :: Module FileCopier
[hide private]

Source Code for Module portage.util._async.FileCopier

 1  # Copyright 2013 Gentoo Foundation 
 2  # Distributed under the terms of the GNU General Public License v2 
 3   
 4  from portage import os 
 5  from portage import shutil 
 6  from portage.util._async.ForkProcess import ForkProcess 
 7   
8 -class FileCopier(ForkProcess):
9 """ 10 Asynchronously copy a file. 11 """ 12 13 __slots__ = ('src_path', 'dest_path') 14
15 - def _run(self):
16 shutil.copy(self.src_path, self.dest_path) 17 return os.EX_OK
18