My favorites | Sign in
Project Home Downloads Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
topic "FindFile";
[2 $$0,0#00000000000000000000000000000000:Default]
[i448;a25;kKO9;2 $$1,0#37138531426314131252341829483380:class]
[l288;2 $$2,0#27521748481378242620020725143825:desc]
[0 $$3,0#96390100711032703541132217272105:end]
[H6;0 $$4,0#05600065144404261032431302351956:begin]
[i448;a25;kKO9;2 $$5,0#37138531426314131252341829483370:item]
[l288;a4;*@5;1 $$6,6#70004532496200323422659154056402:requirement]
[l288;i1121;b17;O9;~~~.1408;2 $$7,0#10431211400427159095818037425705:param]
[i448;b42;O9;2 $$8,8#61672508125594000341940100500538:tparam]
[b42;2 $$9,9#13035079074754324216151401829390:normal]
[{_}
[ {{10000@(113.42.0) [s0;%% [*@7;4 FindFile]]}}&]
[s3; &]
[s1;:FindFile`:`:class: [@(0.0.255)3 class][3 _][*3 FindFile]&]
[s9;%% This class serves as platform independent encapsulation of
directory enumeration.&]
[s3; &]
[s0; &]
[ {{10000F(128)G(128)@1 [s0;%% [* Public Method List]]}}&]
[s3; &]
[s5;:FindFile`:`:Search`(const char`*`): [@(0.0.255) bool]_[* Search]([@(0.0.255) const]_[@(0.0.255) c
har]_`*[*@3 path])&]
[s2;%% Starts a new listing. [%-*@3 path] can contain wildcards (`'`*`',
`'?`') to list more than single file. Returns true if first file
is found.&]
[s3;%% &]
[s4;%% &]
[s5;:FindFile`:`:Next`(`): [@(0.0.255) bool]_[* Next]()&]
[s2;%% Attemts to iterate to the next file, returns true if successful.&]
[s3;%% &]
[s4;%% &]
[s5;:FindFile`:`:GetAttributes`(`)const: [_^dword^ dword]_[* GetAttributes]()_[@(0.0.255) c
onst]&]
[s6; `[Win32`]&]
[s2;%% Returns win32 attributes of file.&]
[s3;%% &]
[s4;%% &]
[s5;:FindFile`:`:GetName`(`)const: [_^String^ String]_[* GetName]()_[@(0.0.255) const]&]
[s2;%% Returns the name of current directory entry.&]
[s3;%% &]
[s4; &]
[s5;:FindFile`:`:GetPath`(`)const: [_^String^ String]_[* GetPath]()_[@(0.0.255) const]&]
[s2;%% Returns the full path of current directory entry.&]
[s3; &]
[s4;%% &]
[s5;:FindFile`:`:GetLength`(`)const: [_^int64^ int64]_[* GetLength]()_[@(0.0.255) const]&]
[s2;%% Returns the length of current file. Undefined if current directory
entry is not file.&]
[s3;%% &]
[s4;%% &]
[s5;:FindFile`:`:GetCreationTime`(`)const: [_^FileTime^ FileTime]_[* GetCreationTime]()_[@(0.0.255) c
onst]&]
[s6;%% `[Win32`]&]
[s2;%% Returns Win32 creation time. Does not work with all filesystems.&]
[s3;%% &]
[s4;%% &]
[s5;:FindFile`:`:GetLastAccessTime`(`)const: [_^FileTime^ FileTime]_[* GetLastAccessTime](
)_[@(0.0.255) const]&]
[s2;%% Returns the last time the entry was accessed. Does not work
with all filesystems.&]
[s3;%% &]
[s4;%% &]
[s5;:FindFile`:`:GetLastWriteTime`(`)const: [_^FileTime^ FileTime]_[* GetLastWriteTime]()
_[@(0.0.255) const]&]
[s2;%% Returns the last time the entry was modified. Always works.&]
[s3;%% &]
[s4;%% &]
[s5;:FindFile`:`:GetLastChangeTime`(`)const: [_^FileTime^ FileTime]_[* GetLastChangeTime](
)_[@(0.0.255) const]&]
[s6;%% `[POSIX`]&]
[s2;%% Returns the last change time (st`_ctime member of stat structure).&]
[s3;%% &]
[s4;%% &]
[s5;:FindFile`:`:IsDirectory`(`)const: [@(0.0.255) bool]_[* IsDirectory]()_[@(0.0.255) cons
t]&]
[s2;%% Returns true if entry is a directory. Note that FindFile returns
`'..`' and `'.`' pseudo`-directories in the listing (on both
platforms), these return true as well.&]
[s3;%% &]
[s4;%% &]
[s5;:FindFile`:`:IsFolder`(`)const: [@(0.0.255) bool]_[* IsFolder]()_[@(0.0.255) const]&]
[s2;%% Returns true if entry is a directory, but [* not] `'..`' nor
`'.`'.&]
[s3;%% &]
[s4;%% &]
[s5;:FindFile`:`:IsFile`(`)const: [@(0.0.255) bool]_[* IsFile]()_[@(0.0.255) const]&]
[s2;%% Returns true if entry is a file.&]
[s3;%% &]
[s4;%% &]
[s5;:FindFile`:`:IsArchive`(`)const: [@(0.0.255) bool]_[* IsArchive]()_[@(0.0.255) const]&]
[s6;%% `[Win32`]&]
[s2;%% Returns true if entry has archive flag set.&]
[s3;%% &]
[s4;%% &]
[s5;:FindFile`:`:IsCompressed`(`)const: [@(0.0.255) bool]_[* IsCompressed]()_[@(0.0.255) co
nst]&]
[s6;%% `[Win32`]&]
[s2;%% Returns true if entry has compressed flag set.&]
[s3;%% &]
[s4;%% &]
[s5;:FindFile`:`:IsHidden`(`)const: [@(0.0.255) bool]_[* IsHidden]()_[@(0.0.255) const]&]
[s2;%% Returns true if entry has hidden flag set in Win32 or starts
with `'.`' in POSIX.&]
[s3;%% &]
[s4;%% &]
[s5;:FindFile`:`:IsReadOnly`(`)const: [@(0.0.255) bool]_[* IsReadOnly]()_[@(0.0.255) const]&]
[s2;%% Returns true if entry is read only (in current user context).&]
[s3;%% &]
[s4;%% &]
[s5;:FindFile`:`:IsSystem`(`)const: [@(0.0.255) bool]_[* IsSystem]()_[@(0.0.255) const]&]
[s6;%% `[Win32`]&]
[s2;%% Returns true if entry has system flag set.&]
[s3;%% &]
[s4;%% &]
[s5;:FindFile`:`:IsTemporary`(`)const: [@(0.0.255) bool]_[* IsTemporary]()_[@(0.0.255) cons
t]&]
[s6;%% `[Win32`]&]
[s2;%% Returns true if entry has system flag set.&]
[s3;%% &]
[s4;%% &]
[s5;:FindFile`:`:IsSymLink`(`)const: [@(0.0.255) bool]_[* IsSymLink]()_[@(0.0.255) const]&]
[s2;%% POSIX: Returns true if entry is POSIX symlink. Win32: Returns
true if entry is Shell link file (.lnk with proper content).&]
[s3;%% &]
[s4; &]
[s5;:FindFile`:`:IsExecutable`(`)const: [@(0.0.255) bool]_[* IsExecutable]()_[@(0.0.255) co
nst]&]
[s2;%% Returns true if target file is executable binary.&]
[s3; &]
[s4;%% &]
[s5;:FindFile`:`:GetMode`(`)const: [_^dword^ dword]_[* GetMode]()_[@(0.0.255) const]&]
[s6;%% `[POSIX`]&]
[s2;%% Returns UNIX access mode.&]
[s3;%% &]
[s4;%% &]
[s5;:FindFile`:`:operator bool`(`)const: [* operator_bool]()_[@(0.0.255) const]&]
[s2;%% Returns true if there is current entry in FindFile (if false,
all entry information methods have undefined behaviour). Usually,
this is used as condition to the loop that enumerates directory.&]
[s3;%% &]
[s0;%% &]
[ {{10000F(128)G(128)@1 [s0;%% [* Constructor detail]]}}&]
[s3;%% &]
[s5;:FindFile`:`:FindFile`(`): [* FindFile]()&]
[s2;%% Initializes to empty state.&]
[s3;%% &]
[s4;%% &]
[s5;:FindFile`:`:FindFile`(const char`*`): [* FindFile]([@(0.0.255) const]_[@(0.0.255) char
]_`*[*@3 name])&]
[s2;%% Initializes and performs Search([%-*@3 name]).&]
[s3;%% &]
[s0;%% ]

Change log

r4451 by cxl on Jan 20, 2012   Diff
Core: FindFile::GetPath - POSIX support
Go to: 
Project members, sign in to write a code review

Older revisions

r2519 by cxl on Jul 6, 2010   Diff
.Core: DDUMP (thanks dolik.rce)
r2019 by cxl on Feb 6, 2010   Diff
Core: FindFile::IsSymLink in Win32
r1984 by cbpporter on Jan 29, 2010   Diff
Documentation update
All revisions of this file

File info

Size: 6108 bytes, 153 lines
Powered by Google Project Hosting