Logo Search packages:      
Sourcecode: vcs-load-dirs version File versions

def vcs_support::vcs_wc::wc::makedirs (   self,
  name,
  mode = 0777 
)

makedirs(path [, mode=0777])

Super-mkdir; create a leaf directory and all intermediate ones.
Works like mkdir, except that any intermediate path segment (not
just the rightmost) will be created if it does not exist.  This is
recursive.

(Modified from Python source)

Definition at line 196 of file vcs_wc.py.

00196                                        :
        """makedirs(path [, mode=0777])

        Super-mkdir; create a leaf directory and all intermediate ones.
        Works like mkdir, except that any intermediate path segment (not
        just the rightmost) will be created if it does not exist.  This is
        recursive.

        (Modified from Python source)

        """
        head, tail = os.path.split(name)
        if not tail:
            head, tail = os.path.split(head)
        if head and tail and not os.path.exists(head):
            self.makedirs(head, mode)
        if self.verb:
            print "Created directory", name
        os.mkdir(name, mode)
        self.addtag(name)



Generated by  Doxygen 1.6.0   Back to index