Dir.tmpdir integrated

The Dir.tmpdir method from the 'tmpdir' library is now a core method.
Added by Daniel Berger 860 days ago

I've integrated Dir.tmpdir directly into dir.c. However, the semantics are different than Ruby's version. First, I don't validate that the path exists or is writable. That's the user's job. Second, I don't check TMPDIR, only TMP, TEMP and USERPROFILE. No one uses TMPDIR. Last, I don't alter the result based on $SAFE levels, in part because it feels arbitrary, and in part because I eventually plan on scrapping the $SAFE system completely anyway.

Dan


Comments