선언:
C#
public enum FileAttributes {
ReadOnly = 0x1,
Hidden = 0x2,
System = 0x4,
Directory = 0x10,
Device = 0x40,
Normal = 0x80,
Temporary = 0x100,
SparseFile = 0x200,
ReparsePoint = 0x400,
Compressed = 0x800,
Offline = 0x1000,
ContentNotIndexed = 0x2000,
Encrypted = 0x4000,
IntegrityStream = 0x8000,
Virtual = 0x10000,
NoScrubData = 0x20000,
}
VB.NET
Public Enum FileAttributes
[ReadOnly] = &H1
Hidden = &H2
System = &H4
Directory = &H10
Device = &H40
Normal = &H80
Temporary = &H100
SparseFile = &H200
ReparsePoint = &H400
Compressed = &H800
Offline = &H1000
ContentNotIndexed = &H2000
Encrypted = &H4000
IntegrityStream = &H8000
Virtual = &H10000
NoScrubData = &H20000
End Enum
필드 설명:
ReadOnly - 읽기 전용입니다.
Hidden - 숨겨졌습니다.
System - 시스템 파일입니다.
Directory - 디렉터리입니다.
Device - 장치입니다.
Normal - 일반적인 파일입니다.
Temporary - 임시 파일입니다.
SparseFile - 희소 파일입니다.
ReparsePoint - 심볼릭 링크입니다.
Compressed - 압축되었습니다.
Offline - 오프라인 상태입니다.
ContentNotIndexed - 인덱싱되지 않은 컨텐츠입니다.
Encrypted - 암호화되었습니다.
IntegrityStream - 무결성 디렉터리 또는 스트림입니다. (RFS 파일 시스템에서만 지원됩니다)
Virtual - 가상 파일입니다. (시스템 사용을 위해 예약되었습니다)
NoScrubData - 데이터 무결성 스캐너에 의해 읽히지 않는 데이터 스트림입니다.
구조체 설명:
파일 특성을 가져오는 GetFileAttributes API에 사용되는 열거형 상수입니다.
참고:
File Attribute Constants (MSDN)
비고:
'API Reference' 카테고리의 다른 글
44. OFSTRUCT (0) | 2014.11.09 |
---|---|
43. GetFileAttributes (0) | 2014.11.06 |
41. GetTempPath (0) | 2014.10.31 |
40. PROCESS_BASIC_INFORMATION (0) | 2014.10.31 |
39. GetLocalTime (0) | 2014.10.30 |