Search:

Type: Posts; User: iHank

Search: Search took 0.06 seconds.

  1. Replies
    10
    Views
    1,312

    Re: Why is isDirectory true for File("c:")?

    For me, "c:" is always the path of the the executing program. When I move the executing file, then the path och File("c:") is changing to that directory. That is why I think that PhHein is executing...
  2. Replies
    10
    Views
    1,312

    Re: Why is isDirectory true for File("c:")?

    In the middle example, from what path are you running the program?
  3. Replies
    10
    Views
    1,312

    Re: Why is isDirectory true for File("c:")?

    Yes. It certainly is very strange and, as you say, it seems that this only occurs with "c:".

    It will be interesting to find out what's going on.

    Hank
  4. Replies
    10
    Views
    1,312

    Why is isDirectory true for File("c:")?

    Hello!

    I've create a small program, and when I create a File object like


    File f = new File("c:")

    and then call the method isDirectory, it returns true. Why is that?

    The program is...
Results 1 to 4 of 4