摘要: 关于属性的结构 在linux下文件和文件夹都被认为是文件, 所以以下的这个属性对文件和文件夹通用 获取属性的函数有stat/fstat/lstat/fstat c struct stat buf; char pathname="./test.txt"; if(stat(pathname,&buf) 阅读全文
posted @ 2016-06-28 18:19 cfans1993 阅读(588) 评论(0) 推荐(0) 编辑