#920 new defect

mkdir-immutable probably shouldn't implicitly create (mutable) intermediate directories

Reported by: davidsarah Owned by:
Priority: minor Milestone: eventually
Component: code-frontend-web Version: 1.5.0
Keywords: docs usability Cc:
Launchpad Bug:

Description

From #903:

... I don't think that automatically creating the intermediate directories makes a lot of sense for the mkdir-immutable-with-path operations:

  • if the intermediate directories are created as immutable, then they will only ever have one child, and that isn't very useful.
  • if they are created as mutable, that's irregular and might not be what the user (or programmer, if they're not paying close attention to docs) expected.

So I think that a mkdir-immutable-with-path should fail if the intermediate directories don't already exist (in which case, they must obviously be mutable). Explicit Is Better Than Implicit.

The current code creates the intermediate directories as mutable.

Change History (2)

comment:1 Changed at 2010-02-27T06:40:56Z by zooko

  • Milestone changed from undecided to 1.7.0

comment:2 Changed at 2010-06-17T04:37:16Z by zooko

  • Milestone changed from 1.7.0 to eventually
Note: See TracTickets for help on using tickets.