Results 1 to 3 of 3
  1. #1
    deepali1234 is offline Member
    Join Date
    Dec 2011
    Rep Power

    Default list files from URL on webserver

    Hi, All

    How to list the files in folder on webserver. HERE i am using the URL PATH AND NOT THE LOCAL DISK PATH

    Thanks& Regards
    Deepali andhare

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    New Zealand
    Rep Power

    Default Re: list files from URL on webserver

    I'm not sure the expression "the files in folder on webserver" has a well defined meaning. Or if you do mean something specific by it, what that is.

    Filenames and URLs are different sorts of beast. Filenames name actual entities on a disk. Links aside, the hierarchical structure of a file path mirrors the hierarchical structure of the entities on the disk. And it makes sense to ask what the contents of a given folder (given by its path) are.

    URLs also have a hierarchical structure, but it is a structure of the names only. Servers are free to interpret the path however they like. (RFC 3986 "a path segment is considered opaque by the general syntax"). And a URL makes no distinction between a "folder" and a "file".

    Given a url like you might imagine that bar is a folder, but it's not. And you might want to know what other things could replace baz.html and result in a valid return by the server. That's a valid question, but in general a server need not provide you with a way of finding out. If it makes sense, a server may give you something useful if you hit the URL but it need not. And what it gives you will be up to the server.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is online now Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

    Default Re: list files from URL on webserver

    Don't double post. Your other thread with virtually the same question has been closed.
    how to liat the files in a folder on webserver

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. How to get a list of files from an online URL
    By crikey in forum Advanced Java
    Replies: 6
    Last Post: 10-02-2011, 05:41 PM
  2. List of files and directories.
    By artemff in forum CLDC and MIDP
    Replies: 6
    Last Post: 01-02-2010, 05:06 PM
  3. how to get the list of war files
    By vijayabaskar in forum Java Servlet
    Replies: 0
    Last Post: 04-03-2009, 08:39 AM
  4. Replies: 1
    Last Post: 10-21-2008, 09:21 AM
  5. How can I get list of files in a directory
    By karma in forum New To Java
    Replies: 2
    Last Post: 12-15-2007, 12:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts