Add support .Trash-uid directories in share samba resource

legacy
parent c632849583
commit 2a2d4abfab

@ -12243,10 +12243,15 @@ class servRepl(shareLdap):
userNetlogonDir =\
os.path.join(self.clVars.Get("sr_samba_winlogon_path"),
userName)
userTrashDir =\
os.path.join(self.clVars.Get("sr_samba_share_path"),
".Trash-%d"%uid)
userDirs = [("home",userHomeDir),
("netlogon",userNetlogonDir),
("win_prof",winProfDir),
('lin_prof',linProfDir)]
('lin_prof',linProfDir),
('trash',userTrashDir)]
flagError = False
for name, userDir in userDirs:
if not os.path.exists(userDir):

Loading…
Cancel
Save