Is there a cross platform way to check if an object specified in a path is a directory or not?

眉间皱痕 提交于 2020-07-23 06:40:21

问题


This answer specifies how to do this. It is also my understanding that <sys/stat.h> is only available on POSIX, whereas any operating system worth using supports <stdio.h>. Is there a cross platform way to check if a path-specified object is a file or directory in C?

来源:https://stackoverflow.com/questions/62312279/is-there-a-cross-platform-way-to-check-if-an-object-specified-in-a-path-is-a-dir

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!