minor comment change

This commit is contained in:
Scott Taylor 2011-09-05 17:27:02 -04:00
parent 9cbf2228a9
commit 552dc8edb0

View File

@ -398,12 +398,12 @@ module FakeFS
(@mode & mask) != 0 if @mode.is_a?(Integer) (@mode & mask) != 0 if @mode.is_a?(Integer)
end end
# Create a missing file if the path's valid. # Create a missing file if the path is valid.
# #
def create_missing_file def create_missing_file
raise Errno::EISDIR, "Is a directory - #{path}" if File.directory?(@path) raise Errno::EISDIR, "Is a directory - #{path}" if File.directory?(@path)
if !File.exists?(@path) # Unnecessary check, probably. if !File.exists?(@path) # Unnecessary check, probably.
dirname = RealFile.dirname @path dirname = RealFile.dirname @path
unless dirname == "." unless dirname == "."