Ejemplo n.º 1
0
Archivo: disk.py Proyecto: zx013/backup
	def download(self, target_list, source_path):
		target_list = make_list(target_list)
		for target_file in target_list:
			target_file, target_path, target_name, source_name = split_file(target_file)
			shutil.copy(target_file, '%s/%s' % (source_path, source_name))
			#os.system('copy /Y %s %s/%s 1>nul' % (target_file, source_path, source_name))
Ejemplo n.º 2
0
Archivo: disk.py Proyecto: zx013/backup
	def upload(self, source_list, target_path):
		source_list = make_list(source_list)
		for source_file in source_list:
			source_file, source_path, source_name, target_name = split_file(source_file)
			shutil.copy(source_file, '%s/%s' % (target_path, target_name))