From: matz@... (Yukihiro Matsumoto) Date: 2003-07-21T02:10:38+09:00 Subject: Re: BUG: CGI.Session on Windows Hi, In message "BUG: CGI.Session on Windows" on 03/07/20, Lothar Scholz writes: |'/tmp' is not valid under windows and normally (standart |configuration) CGI's don't get the environment variables from the |system. So could we change this into | |"dir = option['tmpdir'] || ENV['TMP'] || Dir::temp_directory | |and add a "temp_directory" method to the Dir class that returns '/tmp' |or on windows the value of the "GetTempPath" function. | |I would highly recommand this change. It makes the newbies life much |easier. Interesting idea. We have same problem for tempfile library. Maybe it can be defined by Ruby library. I think GetTempPath can be accessed via Win32API, right? matz.