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

checking for existence of file  RSS feed

 
jake mullet
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends, if i wanted to check if to see if a file exists in certain directory do i just use the .exists()? for example on a good day there should be only one file in C:\stuff\ called download1.txt, on bad days there are 2 files a download1.txt and download2.txt , so i guess i should just check initially are there 2 files? no then go the first file and do some stuff..any help would be greatly appreciated. thanks JM
 
Greg Mehlhose
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

(edited by Cindy to format code)

[This message has been edited by Cindy Glass (edited June 05, 2001).]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!