Proof if a File exsists

J

Jonathan Heinen

Hi,

I want to proof if a File exsist. I just realize this by

if(Dir.glob(file).length == 0)

But I think there should be a better possibiliti like File.exsists?(file)

Jonathan
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,209
Messages
2,571,088
Members
47,686
Latest member
scamivo

Latest Threads

Top