title: ruby directory function
body: <p>Here's the code :</p>
  
  <pre><code>Dir.foreach('C:\\Documents and Settings\\') { |entry|
      if File.directory?( entry )
          puts entry
      end
  }
  
  Dir.foreach('\\\\10.80.14.20\\transfer') { |entry|
      if File.directory?( entry )
          puts entry
      end
  }
  </code></pre>
  
  <p>Both <code>C:\\Documents and Settings</code> and <code>\\10.80.14.20</code> contain directories.  But it only lists the folders under <code>C:\Documents and Settings</code>. While the folders under <code>\\\\10.80.14.20</code> isn't listed. It seems <code>File.directory?( entry )</code> cannot work under shared folders. Am I right? If so, is there any other methods to identify folders when under shared folders?</p>