gpt4 book ai didi

c++ - PHP 的 is_dir() 的 C++ 等价物是什么?

转载 作者:太空狗 更新时间:2023-10-29 23:37:55 26 4
gpt4 key购买 nike

PHP 的 is_dir() 的 C++ 等价物是什么?

http://www.php.net/manual/en/function.is-dir.php

bool is_dir ( string $filename )
Tells whether the given filename is a directory.

只在 Linux 平台上工作,你会使用什么库?

如果跨平台支持很重要,您会使用什么方法?

最佳答案

C++ 标准中没有任何内容可以跨平台处理文件系统。对于跨平台文件系统访问,请使用 Boost 文件系统库。

关于c++ - PHP 的 is_dir() 的 C++ 等价物是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3558445/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com