path name
| theChameleon (9) | |||
| hello, what functions do i have to use to check the validity of a directory path the user entered? example check that "/usr/" is ok but "wegdfhoiehgboarj" is not. thanks. | |||
| jsmith (379) | |||
| man 2 stat Use stat on the path. If stat returns 0, then check st_mode to see if the statted thing is a directory:
| |||
| Zaita (1138) | |||
| You could also use Boost::FileSystem :) | |||
This topic is archived - New replies not allowed.
