This is a legacy RCR. If this is your RCR, please resubmit it using the new format and process.
/dir
/
subdir subdir2
/
subsub subsub2
Doing
Dir.recurse(".") { |d| puts d}
Would print
/dir /dir/subdir /dir/subdir2 /dir/subdir/subsub /dir/subdir/subsub2With a maxdepth argument,
Dir.recurse("/dir", 1) {|d| puts d}
would print
/dir /dir/subdir /dir/subdir2
Back to RCRchive.
RCR Submission page and RCRchive powered by Ruby, Apache, RuWiki (modified), and RubLog