| View previous topic :: View next topic |
| Author |
Message |
liberty
Joined: 16 Sep 2009 Posts: 35
|
Posted: Tue Nov 03, 2009 2:02 pm Post subject: How to check the availability of a directory |
|
|
| 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 |
|
| Back to top |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Tue Nov 03, 2009 2:11 pm Post subject: |
|
|
| sceIoDopen |
|
| Back to top |
|
 |
lego
Joined: 17 Oct 2008 Posts: 43
|
Posted: Tue Nov 03, 2009 5:02 pm Post subject: |
|
|
| opendir (man 3 opendir)? |
|
| Back to top |
|
 |
liberty
Joined: 16 Sep 2009 Posts: 35
|
Posted: Tue Nov 03, 2009 11:50 pm Post subject: |
|
|
| SceIODopen and opendir both work great. Thank you very much! |
|
| Back to top |
|
 |
sauron_le_noir
Joined: 05 Jul 2008 Posts: 229
|
Posted: Wed Nov 04, 2009 8:10 am Post subject: |
|
|
| stat or fstat from libc does also do the job ;) |
|
| Back to top |
|
 |
|