Show
Ignore:
Timestamp:
07/13/09 13:07:27 (3 years ago)
Author:
trivoallan
Message:

Fixed SVN permission issues.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cleverbox/trunk/cleverbox/utils/filesystem.py

    r260 r355  
    4343        print "rchown %s: %s" % (str(directory), str(why)) 
    4444 
     45def chmodtree(arg, dirname, fnames): 
     46    """ To be used with os.path.walk. """ 
     47 
     48    os.chmod(dirname, arg) 
     49    for file in fnames: 
     50        os.chmod(os.path.join(dirname, file), arg) 
     51 
     52 
    4553def get_uid_from_name(username): 
    4654    """