# File lib/fakefs/dir.rb, line 67defself.delete(string)
raiseSystemCallError, "No such file or directory - #{string}"unlessFileSystem.find(string).values.empty?FileSystem.delete(string)
end
# File lib/fakefs/dir.rb, line 85defself.mkdir(string, integer = 0)
parent = string.split('/')
parent.popraiseErrno::ENOENT, "No such file or directory - #{string}"unlessparent.join==""||FileSystem.find(parent.join('/'))
FileUtils.mkdir_p(string)
end