def mkdir_home(user): """ @summary: create a home directory for the user @param user: the user @type user: kooplex.hub.models.User """ dir_home = Dirname.userhome(user) _mkdir(dir_home, uid = user.profile.userid, gid = user.profile.groupid)
def mkdir_home(user): """ @summary: create a home directory for the user @param user: the user @type user: kooplex.hub.models.User """ dir_home = Dirname.userhome(user) _mkdir(dir_home, uid=user.profile.userid, gid=user.profile.groupid)
def garbagedir_home(user): dir_home = Dirname.userhome(user) garbage = Filename.userhome_garbage(user) _archivedir(dir_home, garbage)
def check_home(user): dir_home = Dirname.userhome(user) assert os.path.exists(dir_home), "Folder %s does not exist" % dir_home