[REBOL] Strange behavior for dirs and files
From: robert:muench:robertmuench at: 22-Feb-2003 17:00
Hi, I have the following code snippet which is part of an IOS (link-app)
Reblet:
?? this-folder
;read in current directory
cd: read this-folder
?? cd
; filter out all directories
dirs: make block! []
foreach entry cd [probe reduce [entry type? entry dir? entry file?
entry] if dir? entry [append dirs entry]]
?? dirs
And this is what I get on the command line:
this-folder: %documents/
cd: [%akquise/ %claranet/ %graphics/ %intern/ %jour-fix/ %jourfixe-03/
%knowledge-pool/ %logos/ %marketing/ %organisa
tion/ %personal/ %pr/ %profile/ %rebol/ %vertr=E4ge/ %vorlagen/
%weiterbildung/]
[%akquise/ file! false true]
[%claranet/ file! false true]
[%graphics/ file! false true]
[%intern/ file! false true]
[%jour-fix/ file! false true]
[%jourfixe-03/ file! false true]
[%knowledge-pool/ file! false true]
[%logos/ file! false true]
[%marketing/ file! false true]
[%organisation/ file! false true]
[%personal/ file! false true]
[%pr/ file! false true]
[%profile/ file! false true]
[%rebol/ file! false true]
[%vertr=E4ge/ file! false true]
[%vorlagen/ file! false true]
[%weiterbildung/ file! false true]
dirs: []
Why does dir? Return false for all entries? I really don't have a clue
what's up. Robert