Bug 91028

Summary: MockFileSystem shouldn't create directories automatically in write_binary_file()
Product: WebKit Reporter: Dirk Pranke <dpranke>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: abarth, eric, tony
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Description Dirk Pranke 2012-07-11 15:29:32 PDT
the MockFileSystem's implementation of write_binary_file() will "create" the directory for the file automatically; this is bad because it is inconsistent with what the real filesystem does and can mask bugs (e.g., bug 90872).

this was originally done for convenience so that you could just say mock_fs.write_text_file('foo/bar/baz.html') when writing your test and not have to worry about creating fake directories. However, we should probably a different way of doing this that doesn't break the semantics for non-test code.