copy-files: modify for mask