@@ -22,9 +22,9 @@ def copy(from, to, options = nil, binary = false)
22
22
def directory ( dir , options = nil )
23
23
options ||= self . options if self . respond_to? ( :options )
24
24
options ||= { }
25
- if File . exists ?( dir ) && File . directory? ( dir )
25
+ if File . exist ?( dir ) && File . directory? ( dir )
26
26
# do nothing
27
- elsif File . exists ?( dir )
27
+ elsif File . exist ?( dir )
28
28
msg = "#{ basename ( dir ) } already exists and is not a directory."
29
29
raise Compass ::FilesystemConflict . new ( msg )
30
30
else
@@ -38,7 +38,7 @@ def write_file(file_name, contents, options = nil, binary = false)
38
38
options ||= self . options if self . respond_to? ( :options )
39
39
skip_write = false
40
40
contents = process_erb ( contents , options [ :erb ] ) if options [ :erb ]
41
- if File . exists ?( file_name )
41
+ if File . exist ?( file_name )
42
42
existing_contents = IO . read ( file_name )
43
43
if existing_contents == contents
44
44
log_action :identical , basename ( file_name ) , options
@@ -73,7 +73,7 @@ def remove(file_name)
73
73
if File . directory? ( file_name )
74
74
FileUtils . rm_rf file_name
75
75
log_action :remove , basename ( file_name ) +"/" , options
76
- elsif File . exists ?( file_name )
76
+ elsif File . exist ?( file_name )
77
77
File . unlink file_name
78
78
log_action :remove , basename ( file_name ) , options
79
79
end
0 commit comments