Project

General

Profile

Bug #12081

Updated by nobu (Nobuyoshi Nakada) almost 9 years ago

``` dir A:\Build 
 >dir A:\Build 
  > 驱动器 A 中的卷是 RAMDISK 
  
 > 卷的序列号是 411D-42E2 

  
 >  
 > A:\Build 的目录 

 
 >  
 > 2016/02/18    09:23      <DIR>            . 
 > 2016/02/18    09:23      <DIR>            .. 
 > 2016/02/18    09:23      <DIR>            dir1 
 > 2016/02/18    09:22                   0 file1.txt 
 > 2016/02/18    09:22                   0 file2.txt 
 > 2016/02/18    09:22                   0 文件1.txt 
 > 2016/02/18    09:22                   0 文件2.txt 
 > 2016/02/18    09:23      <DIR>            目录1 
                
 > 4 个文件                0 字节 
                
 > 4 个目录 22,377,705,472 可用字节 
 ``` 
 ``` 
 >ruby 


 ruby -e "puts Dir['*']" 
  
 > dir1 
  
 > file1.txt 
  
 > file2.txt 
 ``` 
 ``` 
 >ruby 

 ruby -e "puts Dir['**']" 
  
 > dir1 
  
 > file1.txt 
  
 > file2.txt 
 ``` 
 ``` 
 >ruby 

 ruby -e "puts Dir['*.*']" 
  
 > file1.txt 
  
 > file2.txt 
 ``` 

Back