~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

removed mkdir_with_ownership as its probably cleaner to just use copy_ownership
after mkdir

Show diffs side-by-side

added added

removed removed

Lines of Context:
1833
1833
        trace.warning("Unable to copy ownership from '%s' to '%s': IOError: %s." % (src, dst, e))
1834
1834
 
1835
1835
 
1836
 
def mkdir_with_ownership(path, ownership_src=None):
1837
 
    """Create the directory 'path' with specified ownership.
1838
 
 
1839
 
    If ownership_src is given, copies (chown) usr/grp ownership
1840
 
    from 'ownership_src' to 'path'. If ownership_src is None, use the
1841
 
    containing dir ownership.
1842
 
    """
1843
 
    os.mkdir(path)
1844
 
    copy_ownership(path, ownership_src)
1845
 
 
1846
 
 
1847
1836
def path_prefix_key(path):
1848
1837
    """Generate a prefix-order path key for path.
1849
1838