示例#1
0
文件: directory.cpp 项目: 1mr3yn/hhvm
String ArrayDirectory::path() {
  if (!m_it) {
    return empty_string;
  }

  auto entry = m_it.second();
  assert(entry.isString());
  return f_dirname(entry.toString());
}
bool TestExtFile::test_dirname() {
  VS(f_dirname("test/test_ext_file.txt"), "test");
  return Count(true);
}