lib/metadata/util/md5deep.rb in manageiq-smartstate-0.5.10 vs lib/metadata/util/md5deep.rb in manageiq-smartstate-0.6.0

- old
+ new

@@ -11,10 +11,12 @@ attr_accessor :versioninfo, :imports def initialize(fs = nil, options = {}) @fullFileCount = 0 @fullDirCount = 0 + @drive_letter = nil + # Create XML document @xml = XmlHash.createDoc(:filesystem) @fs = fs.kind_of?(MiqFS) ? fs : nil # Read optional parameters if they exist in the options hash @@ -177,12 +179,12 @@ end end def fileOpen(currFile) if @fs - fh = @fs.fileOpen(currFile) + @fs.fileOpen(currFile) else - fh = File.open(currFile) + File.open(currFile) end end def getFileStats(fh) # If we are processing a member of the File class, use the File::Stat object to get data