1
|
1 |
"
|
5
|
2 |
COPYRIGHT (c) 1989 by Claus Gittinger
|
1
|
3 |
All Rights Reserved
|
|
4 |
|
|
5 |
This software is furnished under a license and may be used
|
|
6 |
only in accordance with the terms of that license and with the
|
|
7 |
inclusion of the above copyright notice. This software may not
|
|
8 |
be provided or otherwise made available to, or used by, any
|
|
9 |
other person. No title to or ownership of the software is
|
|
10 |
hereby transferred.
|
|
11 |
"
|
|
12 |
|
|
13 |
Collection subclass:#FileDirectory
|
|
14 |
instanceVariableNames:'pathName lazy'
|
31
|
15 |
classVariableNames:'PathOfCurrentDirectory'
|
1
|
16 |
poolDictionaries:''
|
|
17 |
category:'Collections-Files'
|
|
18 |
!
|
|
19 |
|
|
20 |
FileDirectory comment:'
|
|
21 |
|
5
|
22 |
COPYRIGHT (c) 1989 by Claus Gittinger
|
1
|
23 |
All Rights Reserved
|
|
24 |
|
|
25 |
FileDirectories represent directories in the underlying host system.
|
|
26 |
They provide various methods to create/delete and query for files and/or
|
|
27 |
directories.
|
|
28 |
|
54
|
29 |
$Header: /cvs/stx/stx/libbasic/FileDirectory.st,v 1.9 1994-02-25 12:57:50 claus Exp $
|
1
|
30 |
|
|
31 |
written winter 89 by claus
|
|
32 |
'!
|
|
33 |
|
2
|
34 |
!FileDirectory class methodsFor:'initialization'!
|
|
35 |
|
|
36 |
initialize
|
|
37 |
super initialize.
|
|
38 |
ObjectMemory addDependent:self
|
|
39 |
!
|
|
40 |
|
|
41 |
update:something
|
|
42 |
something == #restarted ifTrue:[
|
31
|
43 |
PathOfCurrentDirectory := nil
|
2
|
44 |
]
|
|
45 |
! !
|
|
46 |
|
1
|
47 |
!FileDirectory class methodsFor:'instance creation'!
|
|
48 |
|
|
49 |
rootDirectory
|
|
50 |
"create and return a new FileDirectory for the root directory"
|
|
51 |
|
|
52 |
^ (self basicNew) pathName:'/'
|
|
53 |
!
|
|
54 |
|
|
55 |
currentDirectory
|
|
56 |
"create and return a new FileDirectory for the current directory"
|
|
57 |
|
|
58 |
^ (self basicNew) pathName:'.'
|
|
59 |
!
|
|
60 |
|
|
61 |
directoryNamed:name
|
|
62 |
"create and return a new FileDirectory for the directory
|
|
63 |
with given pathname"
|
|
64 |
|
|
65 |
^ (self basicNew) pathName:name
|
|
66 |
!
|
|
67 |
|
|
68 |
directoryNamed:name in:aFileDirectory
|
|
69 |
"create and return a new FileDirectory for the directory with given name
|
|
70 |
in another FileDirectory"
|
|
71 |
|
|
72 |
|baseName|
|
|
73 |
|
|
74 |
((name at:1) == $/) ifTrue:[
|
|
75 |
^ self directoryNamed:name
|
|
76 |
].
|
|
77 |
(aFileDirectory isKindOf:FileDirectory) ifTrue:[
|
|
78 |
baseName := aFileDirectory pathName
|
|
79 |
] ifFalse:[
|
|
80 |
baseName := aFileDirectory
|
|
81 |
].
|
|
82 |
"
|
|
83 |
(name = '..') ifTrue:[
|
|
84 |
^ (self basicNew) pathName:(OperatingSystem directoryNameOf:baseName)
|
|
85 |
].
|
|
86 |
"
|
|
87 |
(name = '.') ifTrue:[^ aFileDirectory].
|
|
88 |
|
|
89 |
(baseName = '/') ifFalse:[
|
|
90 |
(baseName endsWith:'/') ifFalse:[
|
|
91 |
baseName := baseName , '/'
|
|
92 |
]
|
|
93 |
].
|
|
94 |
^ (self basicNew) pathName:(baseName , name)
|
|
95 |
! !
|
|
96 |
|
|
97 |
!FileDirectory methodsFor:'accessing'!
|
|
98 |
|
|
99 |
baseName
|
|
100 |
"return my baseName
|
|
101 |
- thats the directory name without leading parent-dirs"
|
|
102 |
|
|
103 |
lazy ifTrue:[self getFullPathName].
|
|
104 |
^ OperatingSystem baseNameOf:pathName
|
|
105 |
!
|
|
106 |
|
|
107 |
directoryName
|
|
108 |
"return my directoryName
|
|
109 |
- thats the directory name where I'm in"
|
|
110 |
|
|
111 |
lazy ifTrue:[self getFullPathName].
|
|
112 |
^ OperatingSystem directoryNameOf:pathName
|
|
113 |
!
|
|
114 |
|
|
115 |
pathName
|
|
116 |
"return my full pathname"
|
|
117 |
|
|
118 |
lazy ifTrue:[self getFullPathName].
|
|
119 |
^ pathName
|
|
120 |
!
|
|
121 |
|
|
122 |
pathName:dirName
|
|
123 |
"set my pathname; return nil if not a valid path; self otherwise"
|
|
124 |
|
|
125 |
pathName := dirName.
|
|
126 |
(dirName startsWith:'/') ifFalse:[
|
|
127 |
lazy := true
|
|
128 |
] ifTrue:[
|
|
129 |
(dirName includes:$.) ifTrue:[
|
|
130 |
lazy := true
|
|
131 |
]
|
|
132 |
].
|
|
133 |
^ self
|
|
134 |
"
|
|
135 |
(OperatingSystem isDirectory:pathName) ifFalse:[^ nil]
|
|
136 |
"
|
|
137 |
!
|
|
138 |
|
|
139 |
contents
|
|
140 |
"return a collection with all files and subdirectories in the receiver"
|
|
141 |
|
|
142 |
|coll|
|
|
143 |
|
|
144 |
coll := OrderedCollection new.
|
|
145 |
self do:[:name |
|
|
146 |
coll add:name
|
|
147 |
].
|
|
148 |
(coll size ~~ 0) ifTrue:[
|
|
149 |
coll sort
|
|
150 |
].
|
|
151 |
^ coll
|
|
152 |
!
|
|
153 |
|
|
154 |
directories
|
|
155 |
"return a collection with all subdirectories in the receiver directory"
|
|
156 |
|
|
157 |
|coll|
|
|
158 |
|
|
159 |
coll := OrderedCollection new.
|
|
160 |
self directoriesDo:[:name |
|
|
161 |
coll add:name
|
|
162 |
].
|
|
163 |
(coll size ~~ 0) ifTrue:[
|
|
164 |
coll sort
|
|
165 |
].
|
|
166 |
^ coll
|
|
167 |
!
|
|
168 |
|
|
169 |
files
|
|
170 |
"return a collection with all plain files in the receiver directory"
|
|
171 |
|
|
172 |
|coll|
|
|
173 |
|
|
174 |
coll := OrderedCollection new.
|
|
175 |
self filesDo:[:name |
|
|
176 |
coll add:name
|
|
177 |
].
|
|
178 |
^ coll sort
|
|
179 |
! !
|
|
180 |
|
|
181 |
!FileDirectory methodsFor:'private'!
|
|
182 |
|
|
183 |
getFullPathName
|
|
184 |
"make my pathname be a full pathname - i.e. starting at root"
|
|
185 |
|
|
186 |
|aStream command shortPathName fullPathName|
|
|
187 |
|
|
188 |
(pathName = '/') ifTrue:[
|
|
189 |
lazy := false.
|
|
190 |
^ self
|
|
191 |
].
|
|
192 |
|
|
193 |
"since currentDirectory is used very often, cache its path here"
|
|
194 |
|
|
195 |
(pathName = '.') ifTrue:[
|
31
|
196 |
PathOfCurrentDirectory notNil ifTrue:[
|
|
197 |
pathName := PathOfCurrentDirectory.
|
1
|
198 |
lazy := false.
|
|
199 |
^ self
|
|
200 |
]
|
|
201 |
].
|
|
202 |
|
|
203 |
shortPathName := pathName.
|
|
204 |
|
13
|
205 |
"some have a convenient function for this ..."
|
|
206 |
%{ /* STACK: 16000 */
|
|
207 |
#ifdef HAS_REALPATH
|
1
|
208 |
# include <stdlib.h>
|
|
209 |
# include <sys/param.h>
|
|
210 |
|
|
211 |
char nameBuffer[MAXPATHLEN + 1];
|
|
212 |
|
|
213 |
if (realpath(_stringVal(_INST(pathName)), nameBuffer)) {
|
3
|
214 |
fullPathName = _MKSTRING(nameBuffer COMMA_CON);
|
1
|
215 |
}
|
|
216 |
#endif
|
|
217 |
%}
|
|
218 |
.
|
|
219 |
fullPathName notNil ifTrue:[
|
3
|
220 |
pathName := fullPathName.
|
|
221 |
lazy := false
|
1
|
222 |
] ifFalse:[
|
|
223 |
"since there might be symbolic links and other stuff involved,
|
|
224 |
better trust pwd than removing '..' by ourself
|
|
225 |
- although this is very slow"
|
|
226 |
|
|
227 |
command := 'cd ' , pathName , '; pwd'.
|
|
228 |
aStream := PipeStream readingFrom:command.
|
|
229 |
aStream isNil ifFalse:[
|
|
230 |
(aStream atEnd) ifFalse:[
|
|
231 |
fullPathName := aStream nextLine
|
|
232 |
].
|
|
233 |
aStream close.
|
|
234 |
fullPathName notNil ifTrue:[
|
|
235 |
pathName := fullPathName.
|
|
236 |
lazy := false
|
|
237 |
]
|
|
238 |
] ifTrue:[
|
|
239 |
self error:('PipeStream for <' , command , '> failed').
|
|
240 |
"by clearing lazy, we avoid triggering the error again"
|
|
241 |
lazy := false
|
|
242 |
]
|
|
243 |
].
|
|
244 |
|
|
245 |
"if it was the current dir, keep name for next query"
|
|
246 |
(shortPathName = '.') ifTrue:[
|
31
|
247 |
PathOfCurrentDirectory := fullPathName
|
1
|
248 |
]
|
|
249 |
! !
|
|
250 |
|
|
251 |
!FileDirectory methodsFor:'basic'!
|
|
252 |
|
|
253 |
createDirectory:newName
|
|
254 |
"create a new filedirectory as a subdirectory of myself;
|
|
255 |
return true if successful"
|
|
256 |
|
|
257 |
|realName|
|
|
258 |
|
|
259 |
(newName = '.') ifFalse:[
|
|
260 |
(newName = '..') ifFalse:[
|
|
261 |
((newName at:1) == $/) ifTrue:[
|
|
262 |
realName := newName copyFrom:2
|
|
263 |
] ifFalse:[
|
|
264 |
realName := newName
|
|
265 |
].
|
|
266 |
(realName startsWith:'/') ifTrue:[
|
|
267 |
^ OperatingSystem createDirectory:realName
|
|
268 |
] ifFalse:[
|
|
269 |
^ OperatingSystem createDirectory:(pathName , '/' , realName)
|
|
270 |
]
|
|
271 |
]
|
|
272 |
].
|
|
273 |
^ false
|
|
274 |
!
|
|
275 |
|
|
276 |
removeFile:fileName
|
|
277 |
"remove the file 'fileName' from myself; return true if successful"
|
|
278 |
|
|
279 |
(fileName startsWith:'/') ifTrue:[
|
|
280 |
^ OperatingSystem removeFile:fileName
|
|
281 |
].
|
|
282 |
^ OperatingSystem removeFile:(pathName , '/' , fileName)
|
|
283 |
!
|
|
284 |
|
|
285 |
removeDirectory:dirName
|
19
|
286 |
"remove the directory 'dirName' from myself; return true if successful.
|
20
|
287 |
If the directory is not empty, the containing files/directories are also
|
19
|
288 |
removed."
|
|
289 |
|
|
290 |
|absPath|
|
1
|
291 |
|
|
292 |
(dirName startsWith:'/') ifTrue:[
|
19
|
293 |
absPath := dirName
|
|
294 |
] ifFalse:[
|
|
295 |
absPath := pathName , '/' , dirName
|
1
|
296 |
].
|
19
|
297 |
(OperatingSystem removeDirectory:absPath) ifTrue:[^ true].
|
|
298 |
^ OperatingSystem recursiveRemoveDirectory:absPath
|
1
|
299 |
!
|
|
300 |
|
|
301 |
remove:aFileOrDirectoryName
|
|
302 |
"remove the file or directory from myself; return true if successful"
|
|
303 |
|
|
304 |
|path|
|
|
305 |
|
|
306 |
(aFileOrDirectoryName startsWith:'/') ifTrue:[
|
|
307 |
path := aFileOrDirectoryName
|
|
308 |
] ifFalse:[
|
|
309 |
path := (pathName , '/' , aFileOrDirectoryName)
|
|
310 |
].
|
|
311 |
(OperatingSystem isDirectory:path) ifTrue:[
|
|
312 |
^ OperatingSystem removeDirectory:path
|
|
313 |
].
|
|
314 |
^ OperatingSystem removeFile:path
|
|
315 |
!
|
|
316 |
|
|
317 |
link:oldFileName to:newFileName
|
|
318 |
"link oldFileName to newFileName in myself, return true if successful"
|
|
319 |
|
|
320 |
|path1 path2|
|
|
321 |
|
|
322 |
(oldFileName startsWith:'/') ifTrue:[
|
|
323 |
path1 := oldFileName
|
|
324 |
] ifFalse:[
|
|
325 |
path1 := (pathName , '/' , oldFileName)
|
|
326 |
].
|
|
327 |
(newFileName startsWith:'/') ifTrue:[
|
|
328 |
path2 := newFileName
|
|
329 |
] ifFalse:[
|
|
330 |
path2 := (pathName , '/' , newFileName)
|
|
331 |
].
|
54
|
332 |
^ OperatingSystem linkFile:path1 to:path2
|
1
|
333 |
!
|
|
334 |
|
|
335 |
renameFile:oldFileName newName:newFileName
|
|
336 |
"rename the file; return true if successful"
|
|
337 |
|
|
338 |
|path1 path2|
|
|
339 |
|
|
340 |
(oldFileName startsWith:'/') ifTrue:[
|
|
341 |
path1 := oldFileName
|
|
342 |
] ifFalse:[
|
|
343 |
path1 := (pathName , '/' , oldFileName)
|
|
344 |
].
|
|
345 |
(newFileName startsWith:'/') ifTrue:[
|
|
346 |
path2 := newFileName
|
|
347 |
] ifFalse:[
|
|
348 |
path2 := (pathName , '/' , newFileName)
|
|
349 |
].
|
54
|
350 |
^ OperatingSystem renameFile:path1 to:path2
|
1
|
351 |
! !
|
|
352 |
|
|
353 |
!FileDirectory methodsFor:'queries'!
|
|
354 |
|
|
355 |
id
|
|
356 |
"return the directories file-id (inode number)"
|
|
357 |
|
|
358 |
^ OperatingSystem idOf:pathName
|
|
359 |
!
|
|
360 |
|
|
361 |
exists
|
|
362 |
"return true if this directory exists"
|
|
363 |
|
|
364 |
^ OperatingSystem isDirectory:pathName
|
|
365 |
"(FileDirectory directoryNamed:'fooBar') exists"
|
|
366 |
!
|
|
367 |
|
3
|
368 |
isEmpty
|
|
369 |
"return true, if the directory is empty;
|
|
370 |
redefined since '.' and '..' do not count as entries here."
|
|
371 |
|
|
372 |
self do:[:fName |
|
|
373 |
((fName ~= '.') and:[fName ~= '..']) ifTrue:[^ false].
|
|
374 |
].
|
|
375 |
^ true
|
|
376 |
!
|
|
377 |
|
1
|
378 |
infoOf:name
|
|
379 |
"return an array filled with file info for the file 'aFileName';
|
|
380 |
return nil if such a file does not exist"
|
|
381 |
|
|
382 |
(name startsWith:'/') ifTrue:[
|
|
383 |
^ OperatingSystem infoOf:name
|
|
384 |
].
|
|
385 |
^ OperatingSystem infoOf:(pathName , '/' , name)
|
|
386 |
!
|
|
387 |
|
|
388 |
timeOfLastChange:name
|
|
389 |
"return the timeStamp of a file in myself"
|
|
390 |
|
|
391 |
(name startsWith:'/') ifTrue:[
|
|
392 |
^ OperatingSystem timeOfLastChange:name
|
|
393 |
].
|
|
394 |
^ OperatingSystem timeOfLastChange:(pathName , '/' , name)
|
|
395 |
!
|
|
396 |
|
|
397 |
timeOfLastChange
|
|
398 |
"return the timeStamp of myself"
|
|
399 |
|
|
400 |
^ OperatingSystem timeOfLastChange:pathName
|
|
401 |
!
|
|
402 |
|
|
403 |
accessModeOf:aFileName
|
|
404 |
"return the access-mode bits (rwxrwxrwx) of a file in myself"
|
|
405 |
|
|
406 |
(aFileName startsWith:'/') ifTrue:[
|
|
407 |
^ OperatingSystem accessModeOf:aFileName
|
|
408 |
].
|
|
409 |
^ OperatingSystem accessModeOf:(pathName , '/' , aFileName)
|
|
410 |
!
|
|
411 |
|
|
412 |
changeAccessModeOf:aFileName to:modeBits
|
|
413 |
"set the access-mode bits (rwxrwxrwx) of a file in myself"
|
|
414 |
|
|
415 |
(aFileName startsWith:'/') ifTrue:[
|
|
416 |
^ OperatingSystem changeAccessModeOf:aFileName
|
|
417 |
to:modeBits
|
|
418 |
].
|
|
419 |
^ OperatingSystem changeAccessModeOf:(pathName , '/' , aFileName)
|
|
420 |
to:modeBits
|
|
421 |
!
|
|
422 |
|
|
423 |
typeOf:aFileName
|
|
424 |
"return the symbolic type of a file in myself"
|
|
425 |
|
|
426 |
(aFileName startsWith:'/') ifTrue:[
|
|
427 |
^ OperatingSystem typeOf:aFileName
|
|
428 |
].
|
|
429 |
^ OperatingSystem typeOf:(pathName , '/' , aFileName)
|
|
430 |
!
|
|
431 |
|
|
432 |
isDirectory:name
|
|
433 |
"return true, if the given name is that of a directory in myself"
|
|
434 |
|
|
435 |
(name startsWith:'/') ifTrue:[
|
|
436 |
^ OperatingSystem isDirectory:name
|
|
437 |
].
|
|
438 |
^ OperatingSystem isDirectory:(pathName , '/' , name)
|
|
439 |
!
|
|
440 |
|
|
441 |
isReadable:name
|
|
442 |
"return true, if the given file is readable"
|
|
443 |
|
|
444 |
(name startsWith:'/') ifTrue:[
|
|
445 |
^ OperatingSystem isReadable:name
|
|
446 |
].
|
|
447 |
^ OperatingSystem isReadable:(pathName , '/' , name)
|
|
448 |
!
|
|
449 |
|
|
450 |
isWritable:name
|
|
451 |
"return true, if the given file is readable"
|
|
452 |
|
|
453 |
(name startsWith:'/') ifTrue:[
|
|
454 |
^ OperatingSystem isWritable:name
|
|
455 |
].
|
|
456 |
^ OperatingSystem isWritable:(pathName , '/' , name)
|
|
457 |
!
|
|
458 |
|
|
459 |
isExecutable:name
|
|
460 |
"return true, if the given file is executable"
|
|
461 |
|
|
462 |
(name startsWith:'/') ifTrue:[
|
|
463 |
^ OperatingSystem isExecutable:name
|
|
464 |
].
|
|
465 |
^ OperatingSystem isExecutable:(pathName , '/' , name)
|
|
466 |
! !
|
|
467 |
|
|
468 |
!FileDirectory methodsFor:'printing & storing'!
|
|
469 |
|
|
470 |
printString
|
|
471 |
lazy ifTrue:[self getFullPathName].
|
|
472 |
^ '(a FileDirectory pathName:' , pathName, ')'
|
|
473 |
!
|
|
474 |
|
|
475 |
storeOn:aStream
|
|
476 |
lazy ifTrue:[self getFullPathName].
|
|
477 |
aStream nextPutAll:'(FileDirectory directoryNamed:'.
|
|
478 |
aStream nextPutAll:pathName.
|
|
479 |
aStream nextPut:$)
|
|
480 |
! !
|
|
481 |
|
|
482 |
!FileDirectory methodsFor:'more instance creation'!
|
|
483 |
|
|
484 |
directoryNamed:aName
|
|
485 |
^ self class directoryNamed:aName in:self pathName
|
|
486 |
! !
|
|
487 |
|
|
488 |
!FileDirectory methodsFor:'enumerating'!
|
|
489 |
|
|
490 |
where:testBlock do:aBlock
|
|
491 |
"evaluate the argument, aBlock for every object in the directory
|
|
492 |
for which testBlock evaluates to true."
|
|
493 |
|
|
494 |
|aStream name|
|
|
495 |
|
|
496 |
aStream := DirectoryStream directoryNamed:pathName.
|
|
497 |
aStream isNil ifTrue:[^ nil].
|
|
498 |
[aStream atEnd] whileFalse:[
|
|
499 |
name := aStream nextLine.
|
|
500 |
name notNil ifTrue:[
|
|
501 |
(testBlock value:name) ifTrue:[
|
|
502 |
aBlock value:name
|
|
503 |
]
|
|
504 |
]
|
|
505 |
].
|
|
506 |
aStream close
|
|
507 |
!
|
|
508 |
|
|
509 |
do:aBlock
|
|
510 |
"evaluate the argument, aBlock for every name in the directory"
|
|
511 |
|
|
512 |
self where:[:name | true] do:aBlock
|
|
513 |
!
|
|
514 |
|
|
515 |
namesDo:aBlock
|
|
516 |
"evaluate the argument, aBlock for every name in the directory.
|
|
517 |
for ST-80 compatibility"
|
|
518 |
|
|
519 |
self do:aBlock
|
|
520 |
!
|
|
521 |
|
|
522 |
filesDo:aBlock
|
|
523 |
"evaluate the argument, aBlock for every plain file name in the directory"
|
|
524 |
|
|
525 |
self where:[:name | (self isDirectory:name) not] do:aBlock
|
|
526 |
!
|
|
527 |
|
|
528 |
directoriesDo:aBlock
|
|
529 |
"evaluate the argument, aBlock for every subdirectory name in the directory"
|
|
530 |
|
|
531 |
self where:[:name | (self isDirectory:name) ifTrue:[
|
|
532 |
((name ~= '.') and:[name ~= '..'])
|
|
533 |
] ifFalse:[
|
|
534 |
false
|
|
535 |
]
|
|
536 |
] do:aBlock
|
|
537 |
!
|
|
538 |
|
|
539 |
allFilesDo:aBlock
|
|
540 |
"evaluate the argument, aBlock for every file name in the directory and in all
|
|
541 |
subdirectories"
|
|
542 |
|
|
543 |
|aStream command line|
|
|
544 |
|
|
545 |
lazy ifTrue:[self getFullPathName].
|
|
546 |
command := 'cd ' , pathName , '; find . -print'.
|
|
547 |
aStream := PipeStream readingFrom:command.
|
|
548 |
aStream isNil ifTrue:[^ nil].
|
|
549 |
[aStream atEnd] whileFalse:[
|
|
550 |
line := aStream nextLine.
|
|
551 |
line notNil ifTrue:[
|
|
552 |
(line = '.') ifFalse:[
|
|
553 |
"cut off initial ./"
|
54
|
554 |
line := line copyFrom:3
|
1
|
555 |
].
|
|
556 |
aBlock value:line
|
|
557 |
]
|
|
558 |
].
|
|
559 |
aStream close
|
|
560 |
!
|
|
561 |
|
|
562 |
allDirectoriesDo:aBlock
|
|
563 |
"evaluate the argument, aBlock for every directory name
|
|
564 |
in the directory and in all subdirectories"
|
|
565 |
|
|
566 |
|aStream command line|
|
|
567 |
|
|
568 |
lazy ifTrue:[self getFullPathName].
|
|
569 |
command := 'cd ' , pathName , '; find . -type d -print'.
|
|
570 |
aStream := PipeStream readingFrom:command.
|
|
571 |
aStream isNil ifTrue:[^ nil].
|
|
572 |
[aStream atEnd] whileFalse:[
|
|
573 |
line := aStream nextLine.
|
|
574 |
line notNil ifTrue:[
|
|
575 |
(line = '.') ifFalse:[
|
|
576 |
"cut off initial ./"
|
54
|
577 |
line := line copyFrom:3
|
1
|
578 |
].
|
|
579 |
aBlock value:line
|
|
580 |
]
|
|
581 |
].
|
|
582 |
aStream close
|
|
583 |
! !
|