Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

calculating the number of files in the directory given in URL  RSS feed

 
Murali Jaya Rao
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have url say (http://10.3.3.40:8080/FolderContents).where FolderContents is a directory which contains some files.
Now i wanna calculate the number files in that directory content.can anyone suggest the solution?

Thanks,
Murali.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From where? You haven't given enough detail to answer the question.
 
Murali Jaya Rao
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Actually the folder is placed in the webserver.Based on the number of files in the folder i can go ahead.

Thanks,
Murali.
 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The HTTP protocol doesn't have the concept of a URL representing a directory. So unless there's some special feature built into the URL, you can't find that out.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!