Commits

Anonymous committed 7627ad4

r2475@LENOVO-6D4C2336: sugawara | 2008-09-13 21:32:11 +0900

Comments (0)

Files changed (1)

 
     require 'tarruby'
     
-    Tar.open('foo.tar', File::RDONLY, Tar::GNU) do |tar|
+    Tar.open('foo.tar', File::RDONLY, 0644, Tar::GNU | Tar::VERBOSE) do |tar|
       while tar.read # or 'tar.each do ...'
         puts tar.pathname
         tar.print_long_ls
 
     require 'tarruby'
     
-    Tar.open('bar.tar', File::CREAT | File::WRONLY, Tar::GNU) do |tar|
+    Tar.open('bar.tar', File::CREAT | File::WRONLY, 0644, Tar::GNU | Tar::VERBOSE) do |tar|
       Dir.glob('**/*.c').each do |filename|
         tar.append_file(filename)
       end