use only files but ignore directories on Windows

A

albert kao

My program plan to use only files but ignore directories on Windows.
I google but do not find some functions like
bool isFile(string)
bool isDirectory(string)
Please help.
 
J

James Mills

My program plan to use only files but ignore directories on Windows.
I google but do not find some functions like
bool isFile(string)
bool isDirectory(string)
Please help.

Try looking up the os module.

cheers
James
 

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

Staff online

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top