@@ -22,9 +22,9 @@ def copy(from, to, options = nil, binary = false)
2222 def directory ( dir , options = nil )
2323 options ||= self . options if self . respond_to? ( :options )
2424 options ||= { }
25- if File . exists ?( dir ) && File . directory? ( dir )
25+ if File . exist ?( dir ) && File . directory? ( dir )
2626 # do nothing
27- elsif File . exists ?( dir )
27+ elsif File . exist ?( dir )
2828 msg = "#{ basename ( dir ) } already exists and is not a directory."
2929 raise Compass ::FilesystemConflict . new ( msg )
3030 else
@@ -38,7 +38,7 @@ def write_file(file_name, contents, options = nil, binary = false)
3838 options ||= self . options if self . respond_to? ( :options )
3939 skip_write = false
4040 contents = process_erb ( contents , options [ :erb ] ) if options [ :erb ]
41- if File . exists ?( file_name )
41+ if File . exist ?( file_name )
4242 existing_contents = IO . read ( file_name )
4343 if existing_contents == contents
4444 log_action :identical , basename ( file_name ) , options
@@ -73,7 +73,7 @@ def remove(file_name)
7373 if File . directory? ( file_name )
7474 FileUtils . rm_rf file_name
7575 log_action :remove , basename ( file_name ) +"/" , options
76- elsif File . exists ?( file_name )
76+ elsif File . exist ?( file_name )
7777 File . unlink file_name
7878 log_action :remove , basename ( file_name ) , options
7979 end
0 commit comments