File suPHP::File::getParentDirectory() const {
std::string path = this->getPath();
path = path.substr(0, path.rfind('/'));
- if (path.length() == 0) {
- path = "/";
- }
return File(path);
}
GroupInfo suPHP::File::getGroup() const throw (SystemException) {
return API_Helper::getSystemAPI().File_getGroup(*this);
}
-
-bool suPHP::File::isSymlink() const throw (SystemException) {
- return API_Helper::getSystemAPI().File_isSymlink(*this);
-}