목차
**struct stat**
stat()
파일 상태 얻기 (파일 크기, 권한, 생성일시, 최종 변경일 등)
int stat(const char *restrict path, struct stat *restrict buf);
path
: 상태를 얻을 파일의 경로
buf
: 상태 정보를 저장할 구조체 포인터0
1
lstat()
파일 상태 얻기
int lstat(const char *restrict path, struct stat *restrict buf);
👀 인자와 리턴값은 stat()
과 동일
stat()
과 다르게 심볼릭 링크는 그 링크 자체의 정보를 얻어옴