features/support/test_server_files.rb in ftpd-0.10.0 vs features/support/test_server_files.rb in ftpd-0.11.0

- old
+ new

@@ -6,9 +6,14 @@ File.open(full_path, 'wb') do |file| file.write @templates[File.basename(full_path)] end end + def set_mtime(path, mtime) + full_path = temp_path(path) + File.utime(File.atime(full_path), mtime, full_path) + end + def add_directory(path) full_path = temp_path(path) mkdir_p full_path end