
import os.path

import target_distribution_methods

from actions import CopyFileAction

def create_actions(source, filename, sha1sum, size, target):	
	target_filename = os.path.join(target['directory'], filename)
	return [CopyFileAction(source, sha1sum, size, target_filename)]

target_distribution_methods.register('cp', create_actions)
