Unix uses / to separate folders but Windows uses \, so I wonder a safe way for cross-platform to concat two paths like /tmp/ + temp_file.xxx.
/
\
/tmp/
temp_file.xxx
Just after a minute, I found the answer, File.join (-_-)
File.join