I'm sorry to bring you the news:
Works fine for me, f: in my case is reported as dir.
Linux 2.3.0-netfilter Samba 1.9.18p10 (I need to update this test-mach)
NT 4.0sp4 Java 2.0.
Sorry, guess you have to check your setup.
Ronald
Steve Cohen wrote:
> This is slightly off topic as it doesn't involve linux but it involves a
> close relative : SAMBA.
>
> I wrote a program that processes a number of files residing in a
> directory on an SGI server that was running irix (6.2). Since we don't
> have a development environment for irix but do for NT, I thought we
> could run the program on NT and access the irix machine via SAMBA -
> since SAMBA is running on the machine and the drive in question
> DOES appear under NT Explorer.
>
> The directory in question is mapped on NT to the N:\ directory. I can
> navigate through this tree with NT without the slightest problem. Yet
> when my java program tries to access it (by instantiating a File object
> ):
>
> File f = new File("N:\\");
> if (f.exists())
> System.out.println("N:\\ exists");
> else
> System.out.println("N:\\ does not exist");
>
> if (f.isDirectory())
> System out println("N:\\ is a directory");
> else
> System out println("N:\\ is not a directory");
>
> this is the output:
> N:\ exists
> N:\ is not a directory
>
> What could be going on here? Why wouldn't the java program see the same
> basic attributes of the directory
> as NT + Samba?
>
> Anyway, since java is multiplatform, I was able to download the JDK for
> irix from SGI and run the program there and it works fine. (Yay, java!)
> But this is not the ideal solution and I'd like to understand why I was
> having trouble. Can anyone tell me?
>
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]