Skip to content

Commit 2448143

Browse files
committed
Support directories in extra student files
1 parent 0d736a0 commit 2448143

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/submission_packager.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def copy_extra_student_files(tmc_project_file, received, dest)
159159
next unless File.exist?(from)
160160
FileUtils.rm_rf(to, secure: true) if File.exist?(to)
161161
FileUtils.mkdir_p(File.dirname(to))
162-
FileUtils.cp(from, to)
162+
FileUtils.cp_r(from, to)
163163
end
164164
end
165165

0 commit comments

Comments
 (0)