Sophie

Sophie

distrib > Mageia > 9 > armv7hl > by-pkgid > 3e50c5c571c53cac0b2c8288443f1818 > files > 3

pdumpfs-1.3-15.mga9.src.rpm

--- a/pdumpfs.in.orig	2010-12-06 13:20:45.000000000 +0900
+++ b/pdumpfs.in	2010-12-06 13:51:06.000000000 +0900
@@ -48,7 +48,7 @@
 #
 
 require 'find'
-require 'ftools'
+require 'fileutils'
 require 'getoptlong'
 require 'date'
 
@@ -870,7 +870,7 @@
       today  = File.join(dest, datedir(start_time), base)
 
       File.umask(0077)
-      File.mkpath(today) unless @dry_run
+      FileUtils.mkpath(today) unless @dry_run
       if latest
         update_snapshot(src, latest, today)
       else
@@ -1020,7 +1020,7 @@
 
       case type
       when "directory"
-        File.mkpath(today)
+        FileUtils.mkpath(today)
       when "unchanged"
         File.force_link(latest, today)
       when "updated"
@@ -1091,7 +1091,7 @@
 
           case type
           when "directory"
-            File.mkpath(t)
+            FileUtils.mkpath(t)
           when "new_file"
             copy(s, t)
           when "symlink"