Project

General

Profile

Actions

Misc #16396

open

What is the reason for this behaviour of Find.find?

Added by stiuna (Juan Gregorio) almost 5 years ago. Updated almost 5 years ago.

Status:
Open
Assignee:
-
[ruby-core:96079]

Description

When I have a script at D:\Downloads\Ruby 2.5.3\rbL\comp\codeShort.rb with few other files in the same folder, the following searches only the folder where the .rb script is located:

Find.find('D:')

When I have a script at D:\Downloads\Ruby 2.5.3\rbL\codeShort.rb with many other files in the same folder, the same code as above searches the entire disk D.

To search the entire disk D in the first case, I did this:

Find.find('D:/')

But I don't understand why the two cases behave differently with the same instruction just because they script are in different directories.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0