copy file at scanning if hasRepo