commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Horacio de Oro <hora...@trimaxcba.com>
Subject Re: [Daemon] File.mkdirs() don't work if started with jsvc
Date Fri, 16 Jul 2004 18:25:25 GMT
Michael McGrady wrote:
> At 10:49 AM 7/16/2004, you wrote:
> 
>> (I've to say that this happens ONLY on Debian Woody... Debian Sarge and
>> Debian Sid works ok).
> 
> Try getting ird of the hard coded separators, i.e. "/", with 
> File.separator, e.g. File.separator + "tmp" + File.separtor + "test+ 
> File.separator instead of "/tmp/test/".  Don't do this with the content 
> types, by the way.  If you want to be OS free, you have to code OS free.
> 
> Michael
> 
> 

Hi Michael!

With:

String fileName = File.separator + "tmp" +
             File.separator + "test" +
             File.separator + System.currentTimeMillis() +
             File.separator + "test" +
             File.separator + "lastDir";

I get:

======================================================
File name: /tmp/test/1090002159068/test/lastDir
FAIL without exception!
======================================================

The same problem! File.mkdirs() doesn't work!

Horacio

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message