How to check the availability of a directory

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
liberty
Posts: 33
Joined: Wed Sep 16, 2009 11:30 am

How to check the availability of a directory

Post by liberty »

I know using fopen to check if a file is available, but I don't know how to check if a directory is available. Anyone can suggest some ways? Thanks
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

sceIoDopen
lego
Posts: 43
Joined: Fri Oct 17, 2008 1:09 am

Post by lego »

opendir (man 3 opendir)?
liberty
Posts: 33
Joined: Wed Sep 16, 2009 11:30 am

Post by liberty »

SceIODopen and opendir both work great. Thank you very much!
sauron_le_noir
Posts: 203
Joined: Sat Jul 05, 2008 8:03 am

Post by sauron_le_noir »

stat or fstat from libc does also do the job ;)
Post Reply