#include <sys/stat.h>
printf("%d", fileInfo.st_size); 는 파일 사이즈 표시하는데
이런걸로
-rwxrw---x 이런거 출력하는 법좀요
fstat 으로 얻어온 struct stat 구조체 내용 안에 다 있다. 퍼미션은 st_mode
bit 단위로 저장되어 있으니http://lejewk.tistory.com/189참고
감사합니다
http://stackoverflow.com/questions/10323060/printing-file-permissions-like-ls-l-using-stat2-in-c
fstat 으로 얻어온 struct stat 구조체 내용 안에 다 있다. 퍼미션은 st_mode
bit 단위로 저장되어 있으니
http://lejewk.tistory.com/189
참고
감사합니다
http://stackoverflow.com/questions/10323060/printing-file-permissions-like-ls-l-using-stat2-in-c