Re: Search files on local disk with java

Discussion in 'Java' started by Andy Fish, Jul 30, 2003.

  1. Andy Fish

    Andy Fish Guest

    AFAIK there is no built-in function

    you will have to do it the hard way with java.io.File, calling ListFiles
    recursively

    andy

    "Cy Fy" <> wrote in message
    news:bg8kae$435$...
    > Hi,
    > from a java application, am trying to find if a particular file is already
    > present on the local disk. I just know the file name and do not know the
    > path. I would like to know how a 'search' for a local file could be done
    > from java.
    > I would eventually need the full path so that I could open the file.
    >
    > Any pointers would be appreciated.
    > Thanks in advance.
    >
    >
    Andy Fish, Jul 30, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jas Shultz
    Replies:
    0
    Views:
    946
    Jas Shultz
    Dec 3, 2003
  2. Marco Schmidt
    Replies:
    0
    Views:
    510
    Marco Schmidt
    Jul 30, 2003
  3. Replies:
    12
    Views:
    521
    santosh
    Nov 15, 2006
  4. Alexander Cohen

    copying local files to remote disk

    Alexander Cohen, Oct 15, 2009, in forum: Ruby
    Replies:
    0
    Views:
    101
    Alexander Cohen
    Oct 15, 2009
  5. manish
    Replies:
    5
    Views:
    163
    Bart Van der Donck
    Nov 8, 2008
Loading...

Share This Page