Add option to ignore files

Add one more attribute to param 'opts' to ignore the files when run
directory copy synchronously.