D
Daku
Could some Java guru please kindly help ? I am porting
an application from Linux to Windows (with Active
Directory running), and getting into very odd problems.
I am using Eclipse IDE.
I want to open a directory as:
File infile = new File ("C:/temp");
......
Then :
if(infile != null)
{
try
[
infile.createNewFile();
}
catch(IOException ioe)
{
}
if(infile != null && infile.isDirectory())
{ // Do some processing
}
The test -- infile != null passes, but infile.isDirectory()
does not. All processing inside the if block depends
on infile being a directory.
Any hints suggestions would be of immense help.
an application from Linux to Windows (with Active
Directory running), and getting into very odd problems.
I am using Eclipse IDE.
I want to open a directory as:
File infile = new File ("C:/temp");
......
Then :
if(infile != null)
{
try
[
infile.createNewFile();
}
catch(IOException ioe)
{
}
if(infile != null && infile.isDirectory())
{ // Do some processing
}
The test -- infile != null passes, but infile.isDirectory()
does not. All processing inside the if block depends
on infile being a directory.
Any hints suggestions would be of immense help.