Operational System Questiam

Hi, i’m trying to save a file in one place if it’s Linux and another one
if it’s WIndows…
But if someone using Windows put to save on Linux, will show a error
page.
How can i verify what of those are the user using?

Bla … wrote:

Hi, i’m trying to save a file in one place if it’s Linux and another one
if it’s WIndows…
But if someone using Windows put to save on Linux, will show a error
page.
How can i verify what of those are the user using?

Bla … wrote:

Hi, i’m trying to save a file in one place if it’s Linux and another one
if it’s WIndows…
But if someone using Windows put to save on Linux, will show a error
page.
How can i verify what of those are the user using?

I believe RUBY_PLATFORM should have that information. It’s rare that
you’d need it, though; have you looked at the Tempdir stuff?

Best,
–Â
Marnen Laibow-Koser
http://www.marnen.org
[email protected]

Sent from my iPhone

On 15 July 2010 13:27, Bla … [email protected] wrote:

Bla … wrote:

Hi, i’m trying to save a file in one place if it’s Linux and another one
if it’s WIndows…
But if someone using Windows put to save on Linux, will show a error
page.
How can i verify what of those are the user using?

I don’t think it is possible for a web app to specify where a file is
saved to on the users PC (assuming that is what you mean), the user
must select that himself.

Colin