【发布时间】:2010-08-25 14:11:35
【问题描述】:
我正在尝试使用 C++ 验证目录。
http://php.net/manual/en/function.is-readable.php
bool is_readable ( 字符串 $filename )
判断文件(或目录)是否存在且可读。
在 C++ 中与上述等价的是什么?
我已经在使用 boost/filesystem 库来检查目录是否存在。
我检查了文档:
http://www.boost.org/doc/libs/1_44_0/libs/filesystem/v3/doc/index.htm
但我找不到 PHP 的 is_readable() 等价物。
如果不能使用 boost/filesystem 库,您会使用什么方法?
【问题讨论】:
标签: c++ linux boost filesystems