win32-dir 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +62 -59
- data/README +265 -265
- data/Rakefile +32 -32
- data/lib/win32/dir/constants.rb +18 -18
- data/lib/win32/dir/functions.rb +35 -35
- data/lib/win32/dir/structs.rb +29 -29
- data/lib/win32/dir.rb +419 -331
- data/test/test_win32_dir.rb +397 -385
- data/win32-dir.gemspec +28 -28
- metadata +2 -2
data/CHANGES
CHANGED
@@ -1,59 +1,62 @@
|
|
1
|
-
== 0.4.
|
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
|
-
* Added
|
47
|
-
*
|
48
|
-
|
49
|
-
|
50
|
-
*
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
* Added
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
*
|
1
|
+
== 0.4.1 - 2-Oct-2012
|
2
|
+
* Added the Dir.read_junction method. Thanks go to Gabriel Wilkins for the patch.
|
3
|
+
|
4
|
+
== 0.4.0 - 29-Jun-2012
|
5
|
+
* Conversion to FFI. Should work with JRuby now.
|
6
|
+
* If current versions of Dir::XXX constant values cannot be found
|
7
|
+
then default values are tried.
|
8
|
+
* Now requires Ruby 1.9 or later.
|
9
|
+
|
10
|
+
== 0.3.7 - 18-Jul-2010
|
11
|
+
* Modified Dir.glob and Dir[] to handle backslashes in path names.
|
12
|
+
* Added tests for the modified Dir.glob and Dir[] behavior.
|
13
|
+
* Removed the old non-gem install Rake task.
|
14
|
+
|
15
|
+
== 0.3.6 - 6-Feb-2010
|
16
|
+
* Bug fixes for Ruby 1.9.x. Thanks go to Kendall Gifford for the spot and
|
17
|
+
the patch.
|
18
|
+
* Minor refactoring of the Dir.create_junction method. This fixed a bug for
|
19
|
+
Ruby 1.9.x, but was also a little cleaner in general.
|
20
|
+
* Some Rakefile task and gemspec updates.
|
21
|
+
|
22
|
+
== 0.3.5 - 6-Aug-2009
|
23
|
+
* Changed the license to Artistic 2.0.
|
24
|
+
* Updated the gemspec, including the addition of a license attribute and
|
25
|
+
test-unit as a development dependency.
|
26
|
+
|
27
|
+
== 0.3.4 - 5-May-2009
|
28
|
+
* Redefined the Dir.getwd (and the Dir.pwd alias) to always return a
|
29
|
+
normalized path.
|
30
|
+
* Some gemspec updates.
|
31
|
+
|
32
|
+
== 0.3.3 - 30-Mar-2009
|
33
|
+
* Virtual folders like Dir::CONTROL, which were previously almost always nil,
|
34
|
+
are now set to their display name.
|
35
|
+
* Fixed a bug in the create_junction method.
|
36
|
+
* Added an 'example' rake task to run the example code.
|
37
|
+
* Renamed the example program from dir_test.rb to dir_example.rb to prevent
|
38
|
+
any potential confusion that it's a genuine test file.
|
39
|
+
|
40
|
+
== 0.3.2 - 25-Jul-2007
|
41
|
+
* Added a Rakefile with tasks for testing and installation.
|
42
|
+
* Removed the install.rb file (the Rakefile handles installation).
|
43
|
+
* Minor updates the README, MANIFEST, and test file.
|
44
|
+
|
45
|
+
== 0.3.1 - 16-Oct-2006
|
46
|
+
* Added the Dir.empty? method.
|
47
|
+
* Changed the Dir.reparse_dir? method to Dir.junction? (but kept an alias
|
48
|
+
for backwards compatibility).
|
49
|
+
* Added rdoc for Dir.junction? (oops).
|
50
|
+
* Some test tweaks and additions.
|
51
|
+
|
52
|
+
== 0.3.0 - 28-May-2006
|
53
|
+
* Now pure Ruby.
|
54
|
+
* Now has a gem.
|
55
|
+
* Added a VERSION constant.
|
56
|
+
|
57
|
+
== 0.2.0 - 27-Jun-2005
|
58
|
+
* Added the Dir.create_junction and Dir.reparse_dir? methods.
|
59
|
+
* Added corresponding tests and documentation.
|
60
|
+
|
61
|
+
== 0.1.0 - 25-Feb-2005
|
62
|
+
* Initial release
|
data/README
CHANGED
@@ -1,265 +1,265 @@
|
|
1
|
-
= Description
|
2
|
-
A series of extra constants for the Dir class that define special folders
|
3
|
-
on MS Windows systems, as well as methods for creating and detecting
|
4
|
-
junctions, i.e. symlinks for directories.
|
5
|
-
|
6
|
-
= Installation
|
7
|
-
gem install win32-dir
|
8
|
-
|
9
|
-
= Synopsis
|
10
|
-
require 'win32/dir'
|
11
|
-
|
12
|
-
# C:\WINNT or C:\WINDOWS
|
13
|
-
puts Dir::WINDOWS
|
14
|
-
|
15
|
-
# C:\Documents and Settings\Daniel\Start Menu\Programs\Administrative Tools
|
16
|
-
puts Dir::ADMINTOOLS
|
17
|
-
|
18
|
-
Dir.mkdir('C:\from')
|
19
|
-
Dir.create_junction('C:\to', 'C:\from')
|
20
|
-
|
21
|
-
= Constants
|
22
|
-
Not all of these are guaranteed to be defined on your system. Also note
|
23
|
-
that the directories are merely defined. It doesn't necessarily mean they
|
24
|
-
actually exist.
|
25
|
-
|
26
|
-
== The following constants should be defined:
|
27
|
-
Dir::ADMINTOOLS
|
28
|
-
The file system directory that is used to store administrative tools for an
|
29
|
-
individual user. The Microsoft Management Console (MMC) will save
|
30
|
-
customized consoles to this directory, and it will roam with the user.
|
31
|
-
|
32
|
-
Dir::COMMON_ADMINTOOLS
|
33
|
-
The file system directory containing administrative tools for all users
|
34
|
-
of the computer.
|
35
|
-
|
36
|
-
Dir::APPDATA
|
37
|
-
The file system directory that serves as a common repository for
|
38
|
-
application-specific data. A typical path is
|
39
|
-
C:\Documents and Settings\<user>\Application Data.
|
40
|
-
|
41
|
-
This CSIDL is supported by the redistributable shfolder.dll for
|
42
|
-
systems that do not have the Microsoft Internet Explorer 4.0
|
43
|
-
integrated Shell installed.
|
44
|
-
|
45
|
-
Dir::COMMON_APPDATA
|
46
|
-
The file system directory containing application data for all users. A
|
47
|
-
typical path is C:\Documents and Settings\All Users\Application Data.
|
48
|
-
|
49
|
-
Dir::COMMON_DOCUMENTS
|
50
|
-
The file system directory that contains documents that are common to all
|
51
|
-
users. A typical paths is C:\Documents and Settings\All Users\Documents.
|
52
|
-
|
53
|
-
Dir::COOKIES
|
54
|
-
The file system directory that serves as a common repository for Internet
|
55
|
-
cookies. A typical path is C:\Documents and Settings\<user>\Cookies.
|
56
|
-
|
57
|
-
Dir::HISTORY
|
58
|
-
The file system directory that serves as a common repository for Internet
|
59
|
-
history items.
|
60
|
-
|
61
|
-
Dir::INTERNET_CACHE
|
62
|
-
The file system directory that serves as a common repository for temporary
|
63
|
-
Internet files. A typical path is
|
64
|
-
C:\Documents and Settings\<user>\Local Settings\Temporary Internet Files.
|
65
|
-
|
66
|
-
Dir::LOCAL_APPDATA
|
67
|
-
The file system directory that serves as a data repository for local
|
68
|
-
(nonroaming) applications. A typical path is
|
69
|
-
C:\Documents and Settings\<user>\Local Settings\Application Data.
|
70
|
-
|
71
|
-
Dir::MYPICTURES
|
72
|
-
The file system directory that serves as a common repository for image
|
73
|
-
files. A typical path is
|
74
|
-
C:\Documents and Settings\<user>\My Documents\My Pictures.
|
75
|
-
|
76
|
-
Dir::PERSONAL
|
77
|
-
The virtual folder representing the My Documents desktop item. This is
|
78
|
-
equivalent to Dir::MYDOCUMENTS.
|
79
|
-
|
80
|
-
Dir::PROGRAM_FILES
|
81
|
-
The Program Files folder. A typical path is C:\Program Files.
|
82
|
-
|
83
|
-
Dir::PROGRAM_FILES_COMMON
|
84
|
-
A folder for components that are shared across applications. A typical path
|
85
|
-
is C:\Program Files\Common.
|
86
|
-
|
87
|
-
Dir::SYSTEM
|
88
|
-
The Windows System folder. A typical path is C:\Windows\System32.
|
89
|
-
|
90
|
-
Dir::WINDOWS
|
91
|
-
The Windows directory or SYSROOT. This corresponds to the %windir% or
|
92
|
-
%SYSTEMROOT% environment variables. A typical path is C:\Windows.
|
93
|
-
|
94
|
-
== The following constants may or may not be defined:
|
95
|
-
Dir::ALTSTARTUP
|
96
|
-
The file system directory that corresponds to the user's nonlocalized
|
97
|
-
Startup program group.
|
98
|
-
|
99
|
-
Dir::BITBUCKET
|
100
|
-
The virtual folder containing the objects in the user's Recycle Bin.
|
101
|
-
|
102
|
-
Dir::CDBURN_AREA
|
103
|
-
The file system directory acting as a staging area for files waiting to
|
104
|
-
be written to CD.
|
105
|
-
|
106
|
-
Dir::COMMON_ALTSTARTUP
|
107
|
-
The file system directory that corresponds to the nonlocalized Startup
|
108
|
-
program group for all users.
|
109
|
-
|
110
|
-
Dir::COMMON_DESKTOPDIRECTORY
|
111
|
-
The file system directory that contains files and folders that appear on
|
112
|
-
the desktop for all users. A typical path is
|
113
|
-
C:\Documents and Settings\All Users\Desktop.
|
114
|
-
|
115
|
-
Dir::COMMON_FAVORITES
|
116
|
-
The file system directory that serves as a common repository for favorite
|
117
|
-
items common to all users.
|
118
|
-
|
119
|
-
Dir::COMMON_MUSIC
|
120
|
-
The file system directory that serves as a repository for music files
|
121
|
-
common to all users.
|
122
|
-
|
123
|
-
Dir::COMMON_PICTURES
|
124
|
-
The file system directory that serves as a repository for image files
|
125
|
-
common to all users.
|
126
|
-
|
127
|
-
Dir::COMMON_PROGRAMS
|
128
|
-
The file system directory that contains the directories for the common
|
129
|
-
program groups that appear on the Start menu for all users.
|
130
|
-
|
131
|
-
Dir::COMMON_STARTMENU
|
132
|
-
The file system directory that contains the programs and folders that
|
133
|
-
appear on the Start menu for all users.
|
134
|
-
|
135
|
-
Dir::COMMON_STARTUP
|
136
|
-
The file system directory that contains the programs that appear in the
|
137
|
-
Startup folder for all users.
|
138
|
-
|
139
|
-
Dir::COMMON_TEMPLATES
|
140
|
-
The file system directory that contains the templates that are available
|
141
|
-
to all users.
|
142
|
-
|
143
|
-
Dir::COMMON_VIDEO
|
144
|
-
The file system directory that serves as a repository for video files
|
145
|
-
common to all users.
|
146
|
-
|
147
|
-
Dir::CONTROLS
|
148
|
-
The virtual folder containing icons for the Control Panel applications.
|
149
|
-
|
150
|
-
Dir::DESKTOP
|
151
|
-
The virtual folder representing the Windows desktop, the root of the
|
152
|
-
namespace.
|
153
|
-
|
154
|
-
Dir::DESKTOPDIRECTORY
|
155
|
-
The file system directory used to physically store file objects on the
|
156
|
-
desktop (not to be confused with the desktop folder itself).
|
157
|
-
|
158
|
-
Dir::DRIVES
|
159
|
-
The virtual folder representing My Computer, containing everything on
|
160
|
-
the local computer: storage devices, printers, and Control Panel. The
|
161
|
-
folder may also contain mapped network drives.
|
162
|
-
|
163
|
-
Dir::FAVORITES
|
164
|
-
The file system directory that serves as a common repository for the
|
165
|
-
user's favorite items.
|
166
|
-
|
167
|
-
Dir::FONTS
|
168
|
-
A virtual folder containing fonts.
|
169
|
-
|
170
|
-
Dir::INTERNET
|
171
|
-
A virtual folder representing the Internet.
|
172
|
-
|
173
|
-
Dir::MYDOCUMENTS
|
174
|
-
The virtual folder representing the My Documents desktop item. See also
|
175
|
-
Dir::PERSONAL.
|
176
|
-
|
177
|
-
Dir::MYMUSIC
|
178
|
-
The file system directory that serves as a common repository for music files.
|
179
|
-
|
180
|
-
Dir::MYVIDEO
|
181
|
-
The file system directory that serves as a common repository for video files.
|
182
|
-
|
183
|
-
Dir::NETHOOD
|
184
|
-
A file system directory containing the link objects that may exist in the
|
185
|
-
My Network Places virtual folder. It is not the same as Dir::NETWORK, which
|
186
|
-
represents the network namespace root.
|
187
|
-
|
188
|
-
Dir::NETWORK
|
189
|
-
A virtual folder representing Network Neighborhood, the root of the network
|
190
|
-
namespace hierarchy.
|
191
|
-
|
192
|
-
Dir::PRINTERS
|
193
|
-
The virtual folder containing installed printers.
|
194
|
-
|
195
|
-
Dir::PRINTHOOD
|
196
|
-
The file system directory that contains the link objects that can exist in
|
197
|
-
the "Printers" virtual folder.
|
198
|
-
|
199
|
-
Dir::PROFILE
|
200
|
-
The user's profile folder.
|
201
|
-
|
202
|
-
Dir::PROFILES
|
203
|
-
The file system directory containing user profile folders.
|
204
|
-
|
205
|
-
Dir::PROGRAMS
|
206
|
-
The file system directory that contains the user's program groups (which
|
207
|
-
are themselves file system directories).
|
208
|
-
|
209
|
-
Dir::RECENT
|
210
|
-
The file system directory that contains shortcuts to the user's most
|
211
|
-
recently used documents.
|
212
|
-
|
213
|
-
Dir::SENDTO
|
214
|
-
The file system directory that contains Send To menu items.
|
215
|
-
|
216
|
-
Dir::STARTMENU
|
217
|
-
The file system directory containing Start menu items.
|
218
|
-
|
219
|
-
Dir::STARTUP
|
220
|
-
The file system directory that corresponds to the user's Startup program
|
221
|
-
group.
|
222
|
-
|
223
|
-
Dir::TEMPLATES
|
224
|
-
The file system directory that serves as a common repository for document
|
225
|
-
templates.
|
226
|
-
|
227
|
-
== Developer's Notes
|
228
|
-
The SHGetFolderPath() documentation on MSDN is somewhat vague about which
|
229
|
-
CSIDL constants are guaranteed to be defined. However, there are 15 which
|
230
|
-
*should* be defined (see docs above). The rest I cannot vouch for.
|
231
|
-
|
232
|
-
Some of these folders are virtual, and the value will be the display name
|
233
|
-
only instead of an actual path.
|
234
|
-
|
235
|
-
== Known Bugs
|
236
|
-
Please log any bug reports on the project page at
|
237
|
-
http://www.github.com/djberg96/win32-dir
|
238
|
-
|
239
|
-
== Future Plans
|
240
|
-
Suggestions welcome.
|
241
|
-
|
242
|
-
== Acknowledgements
|
243
|
-
Shashank Date and Zach Dennis for the suggestion and supporting comments
|
244
|
-
on the mailing list.
|
245
|
-
|
246
|
-
Timothy Byrd and Autrijus Tang for help (directly or indirectly) with the
|
247
|
-
junction methods. Timothy provided a pure Ruby version of the junction
|
248
|
-
code that I later borrowed from.
|
249
|
-
|
250
|
-
Most of the documentation was copied from the MSDN web site.
|
251
|
-
|
252
|
-
== License
|
253
|
-
Artistic 2.0
|
254
|
-
|
255
|
-
== Copyright
|
256
|
-
(C) 2003-2012 Daniel J. Berger, All Rights Reserved
|
257
|
-
|
258
|
-
== Warranty
|
259
|
-
This package is provided "as is" and without any express or
|
260
|
-
implied warranties, including, without limitation, the implied
|
261
|
-
warranties of merchantability and fitness for a particular purpose.
|
262
|
-
|
263
|
-
== Authors
|
264
|
-
Daniel J. Berger
|
265
|
-
Park Heesob
|
1
|
+
= Description
|
2
|
+
A series of extra constants for the Dir class that define special folders
|
3
|
+
on MS Windows systems, as well as methods for creating and detecting
|
4
|
+
junctions, i.e. symlinks for directories.
|
5
|
+
|
6
|
+
= Installation
|
7
|
+
gem install win32-dir
|
8
|
+
|
9
|
+
= Synopsis
|
10
|
+
require 'win32/dir'
|
11
|
+
|
12
|
+
# C:\WINNT or C:\WINDOWS
|
13
|
+
puts Dir::WINDOWS
|
14
|
+
|
15
|
+
# C:\Documents and Settings\Daniel\Start Menu\Programs\Administrative Tools
|
16
|
+
puts Dir::ADMINTOOLS
|
17
|
+
|
18
|
+
Dir.mkdir('C:\from')
|
19
|
+
Dir.create_junction('C:\to', 'C:\from')
|
20
|
+
|
21
|
+
= Constants
|
22
|
+
Not all of these are guaranteed to be defined on your system. Also note
|
23
|
+
that the directories are merely defined. It doesn't necessarily mean they
|
24
|
+
actually exist.
|
25
|
+
|
26
|
+
== The following constants should be defined:
|
27
|
+
Dir::ADMINTOOLS
|
28
|
+
The file system directory that is used to store administrative tools for an
|
29
|
+
individual user. The Microsoft Management Console (MMC) will save
|
30
|
+
customized consoles to this directory, and it will roam with the user.
|
31
|
+
|
32
|
+
Dir::COMMON_ADMINTOOLS
|
33
|
+
The file system directory containing administrative tools for all users
|
34
|
+
of the computer.
|
35
|
+
|
36
|
+
Dir::APPDATA
|
37
|
+
The file system directory that serves as a common repository for
|
38
|
+
application-specific data. A typical path is
|
39
|
+
C:\Documents and Settings\<user>\Application Data.
|
40
|
+
|
41
|
+
This CSIDL is supported by the redistributable shfolder.dll for
|
42
|
+
systems that do not have the Microsoft Internet Explorer 4.0
|
43
|
+
integrated Shell installed.
|
44
|
+
|
45
|
+
Dir::COMMON_APPDATA
|
46
|
+
The file system directory containing application data for all users. A
|
47
|
+
typical path is C:\Documents and Settings\All Users\Application Data.
|
48
|
+
|
49
|
+
Dir::COMMON_DOCUMENTS
|
50
|
+
The file system directory that contains documents that are common to all
|
51
|
+
users. A typical paths is C:\Documents and Settings\All Users\Documents.
|
52
|
+
|
53
|
+
Dir::COOKIES
|
54
|
+
The file system directory that serves as a common repository for Internet
|
55
|
+
cookies. A typical path is C:\Documents and Settings\<user>\Cookies.
|
56
|
+
|
57
|
+
Dir::HISTORY
|
58
|
+
The file system directory that serves as a common repository for Internet
|
59
|
+
history items.
|
60
|
+
|
61
|
+
Dir::INTERNET_CACHE
|
62
|
+
The file system directory that serves as a common repository for temporary
|
63
|
+
Internet files. A typical path is
|
64
|
+
C:\Documents and Settings\<user>\Local Settings\Temporary Internet Files.
|
65
|
+
|
66
|
+
Dir::LOCAL_APPDATA
|
67
|
+
The file system directory that serves as a data repository for local
|
68
|
+
(nonroaming) applications. A typical path is
|
69
|
+
C:\Documents and Settings\<user>\Local Settings\Application Data.
|
70
|
+
|
71
|
+
Dir::MYPICTURES
|
72
|
+
The file system directory that serves as a common repository for image
|
73
|
+
files. A typical path is
|
74
|
+
C:\Documents and Settings\<user>\My Documents\My Pictures.
|
75
|
+
|
76
|
+
Dir::PERSONAL
|
77
|
+
The virtual folder representing the My Documents desktop item. This is
|
78
|
+
equivalent to Dir::MYDOCUMENTS.
|
79
|
+
|
80
|
+
Dir::PROGRAM_FILES
|
81
|
+
The Program Files folder. A typical path is C:\Program Files.
|
82
|
+
|
83
|
+
Dir::PROGRAM_FILES_COMMON
|
84
|
+
A folder for components that are shared across applications. A typical path
|
85
|
+
is C:\Program Files\Common.
|
86
|
+
|
87
|
+
Dir::SYSTEM
|
88
|
+
The Windows System folder. A typical path is C:\Windows\System32.
|
89
|
+
|
90
|
+
Dir::WINDOWS
|
91
|
+
The Windows directory or SYSROOT. This corresponds to the %windir% or
|
92
|
+
%SYSTEMROOT% environment variables. A typical path is C:\Windows.
|
93
|
+
|
94
|
+
== The following constants may or may not be defined:
|
95
|
+
Dir::ALTSTARTUP
|
96
|
+
The file system directory that corresponds to the user's nonlocalized
|
97
|
+
Startup program group.
|
98
|
+
|
99
|
+
Dir::BITBUCKET
|
100
|
+
The virtual folder containing the objects in the user's Recycle Bin.
|
101
|
+
|
102
|
+
Dir::CDBURN_AREA
|
103
|
+
The file system directory acting as a staging area for files waiting to
|
104
|
+
be written to CD.
|
105
|
+
|
106
|
+
Dir::COMMON_ALTSTARTUP
|
107
|
+
The file system directory that corresponds to the nonlocalized Startup
|
108
|
+
program group for all users.
|
109
|
+
|
110
|
+
Dir::COMMON_DESKTOPDIRECTORY
|
111
|
+
The file system directory that contains files and folders that appear on
|
112
|
+
the desktop for all users. A typical path is
|
113
|
+
C:\Documents and Settings\All Users\Desktop.
|
114
|
+
|
115
|
+
Dir::COMMON_FAVORITES
|
116
|
+
The file system directory that serves as a common repository for favorite
|
117
|
+
items common to all users.
|
118
|
+
|
119
|
+
Dir::COMMON_MUSIC
|
120
|
+
The file system directory that serves as a repository for music files
|
121
|
+
common to all users.
|
122
|
+
|
123
|
+
Dir::COMMON_PICTURES
|
124
|
+
The file system directory that serves as a repository for image files
|
125
|
+
common to all users.
|
126
|
+
|
127
|
+
Dir::COMMON_PROGRAMS
|
128
|
+
The file system directory that contains the directories for the common
|
129
|
+
program groups that appear on the Start menu for all users.
|
130
|
+
|
131
|
+
Dir::COMMON_STARTMENU
|
132
|
+
The file system directory that contains the programs and folders that
|
133
|
+
appear on the Start menu for all users.
|
134
|
+
|
135
|
+
Dir::COMMON_STARTUP
|
136
|
+
The file system directory that contains the programs that appear in the
|
137
|
+
Startup folder for all users.
|
138
|
+
|
139
|
+
Dir::COMMON_TEMPLATES
|
140
|
+
The file system directory that contains the templates that are available
|
141
|
+
to all users.
|
142
|
+
|
143
|
+
Dir::COMMON_VIDEO
|
144
|
+
The file system directory that serves as a repository for video files
|
145
|
+
common to all users.
|
146
|
+
|
147
|
+
Dir::CONTROLS
|
148
|
+
The virtual folder containing icons for the Control Panel applications.
|
149
|
+
|
150
|
+
Dir::DESKTOP
|
151
|
+
The virtual folder representing the Windows desktop, the root of the
|
152
|
+
namespace.
|
153
|
+
|
154
|
+
Dir::DESKTOPDIRECTORY
|
155
|
+
The file system directory used to physically store file objects on the
|
156
|
+
desktop (not to be confused with the desktop folder itself).
|
157
|
+
|
158
|
+
Dir::DRIVES
|
159
|
+
The virtual folder representing My Computer, containing everything on
|
160
|
+
the local computer: storage devices, printers, and Control Panel. The
|
161
|
+
folder may also contain mapped network drives.
|
162
|
+
|
163
|
+
Dir::FAVORITES
|
164
|
+
The file system directory that serves as a common repository for the
|
165
|
+
user's favorite items.
|
166
|
+
|
167
|
+
Dir::FONTS
|
168
|
+
A virtual folder containing fonts.
|
169
|
+
|
170
|
+
Dir::INTERNET
|
171
|
+
A virtual folder representing the Internet.
|
172
|
+
|
173
|
+
Dir::MYDOCUMENTS
|
174
|
+
The virtual folder representing the My Documents desktop item. See also
|
175
|
+
Dir::PERSONAL.
|
176
|
+
|
177
|
+
Dir::MYMUSIC
|
178
|
+
The file system directory that serves as a common repository for music files.
|
179
|
+
|
180
|
+
Dir::MYVIDEO
|
181
|
+
The file system directory that serves as a common repository for video files.
|
182
|
+
|
183
|
+
Dir::NETHOOD
|
184
|
+
A file system directory containing the link objects that may exist in the
|
185
|
+
My Network Places virtual folder. It is not the same as Dir::NETWORK, which
|
186
|
+
represents the network namespace root.
|
187
|
+
|
188
|
+
Dir::NETWORK
|
189
|
+
A virtual folder representing Network Neighborhood, the root of the network
|
190
|
+
namespace hierarchy.
|
191
|
+
|
192
|
+
Dir::PRINTERS
|
193
|
+
The virtual folder containing installed printers.
|
194
|
+
|
195
|
+
Dir::PRINTHOOD
|
196
|
+
The file system directory that contains the link objects that can exist in
|
197
|
+
the "Printers" virtual folder.
|
198
|
+
|
199
|
+
Dir::PROFILE
|
200
|
+
The user's profile folder.
|
201
|
+
|
202
|
+
Dir::PROFILES
|
203
|
+
The file system directory containing user profile folders.
|
204
|
+
|
205
|
+
Dir::PROGRAMS
|
206
|
+
The file system directory that contains the user's program groups (which
|
207
|
+
are themselves file system directories).
|
208
|
+
|
209
|
+
Dir::RECENT
|
210
|
+
The file system directory that contains shortcuts to the user's most
|
211
|
+
recently used documents.
|
212
|
+
|
213
|
+
Dir::SENDTO
|
214
|
+
The file system directory that contains Send To menu items.
|
215
|
+
|
216
|
+
Dir::STARTMENU
|
217
|
+
The file system directory containing Start menu items.
|
218
|
+
|
219
|
+
Dir::STARTUP
|
220
|
+
The file system directory that corresponds to the user's Startup program
|
221
|
+
group.
|
222
|
+
|
223
|
+
Dir::TEMPLATES
|
224
|
+
The file system directory that serves as a common repository for document
|
225
|
+
templates.
|
226
|
+
|
227
|
+
== Developer's Notes
|
228
|
+
The SHGetFolderPath() documentation on MSDN is somewhat vague about which
|
229
|
+
CSIDL constants are guaranteed to be defined. However, there are 15 which
|
230
|
+
*should* be defined (see docs above). The rest I cannot vouch for.
|
231
|
+
|
232
|
+
Some of these folders are virtual, and the value will be the display name
|
233
|
+
only instead of an actual path.
|
234
|
+
|
235
|
+
== Known Bugs
|
236
|
+
Please log any bug reports on the project page at
|
237
|
+
http://www.github.com/djberg96/win32-dir
|
238
|
+
|
239
|
+
== Future Plans
|
240
|
+
Suggestions welcome.
|
241
|
+
|
242
|
+
== Acknowledgements
|
243
|
+
Shashank Date and Zach Dennis for the suggestion and supporting comments
|
244
|
+
on the mailing list.
|
245
|
+
|
246
|
+
Timothy Byrd and Autrijus Tang for help (directly or indirectly) with the
|
247
|
+
junction methods. Timothy provided a pure Ruby version of the junction
|
248
|
+
code that I later borrowed from.
|
249
|
+
|
250
|
+
Most of the documentation was copied from the MSDN web site.
|
251
|
+
|
252
|
+
== License
|
253
|
+
Artistic 2.0
|
254
|
+
|
255
|
+
== Copyright
|
256
|
+
(C) 2003-2012 Daniel J. Berger, All Rights Reserved
|
257
|
+
|
258
|
+
== Warranty
|
259
|
+
This package is provided "as is" and without any express or
|
260
|
+
implied warranties, including, without limitation, the implied
|
261
|
+
warranties of merchantability and fitness for a particular purpose.
|
262
|
+
|
263
|
+
== Authors
|
264
|
+
Daniel J. Berger
|
265
|
+
Park Heesob
|