lib/file.rb in wixgem-0.93.0 vs lib/file.rb in wixgem-0.99.0
- old
+ new
@@ -2,12 +2,12 @@
class File
def self.read_only?(path)
raise "'#{path}' does not exist" unless(File.exists?(path))
- fso = WIN32OLE.new('Scripting.FileSystemObject')
+ fso = WIN32OLE.new('Scripting.FileSystemObject')
raise 'Failed to create Scripting.FileSystemObject' if(fso.nil?)
- fo = fso.GetFile(path)
+ fo = fso.GetFile(path)
- return ((fo.Attributes & 1) != 0) ? true : false
+ return ((fo.Attributes & 1) != 0) ? true : false
end
end
\ No newline at end of file