implement file-local-copy handler