C 知道
I want to check if there is a directory exist or not before uploading a file.
If the directory does not exist return FALSE.
Does is_dir do the work?
收起
is_dir() well check if the first argument is a directory and is_file() will check if the first argument is a file.
They both return true if the dir/file exists, and false if not.
报告相同问题?
程序员都在用的中文IT技术交流社区
专业的中文 IT 技术社区,与千万技术人共成长
关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!