diff --git a/lib/fakefs/fileutils.rb b/lib/fakefs/fileutils.rb index cd5acbe..d3b6a45 100644 --- a/lib/fakefs/fileutils.rb +++ b/lib/fakefs/fileutils.rb @@ -29,7 +29,7 @@ module FakeFS raise Errno::EISDIR, src end - if dst_file and File.directory?(dst_file) + if dst_file && File.directory?(dst_file) FileSystem.add(File.join(dest, src), src_file.entry.clone(dst_file)) else FileSystem.delete(dest) @@ -105,4 +105,4 @@ module FakeFS end alias_method :chdir, :cd end -end \ No newline at end of file +end