Add .Trash for FTP service

legacy
parent f0b0ff15d7
commit 0069b26d76

@ -12246,14 +12246,21 @@ class servRepl(shareLdap):
userTrashDir =\
os.path.join(self.clVars.Get("sr_samba_share_path"),
".Trash-%d"%uid)
userTrashDirFtp =\
os.path.join(self.clVars.Get("sr_ftp_path"),
".Trash-%d"%uid)
userDirs = [("home",userHomeDir),
("netlogon",userNetlogonDir),
("win_prof",winProfDir),
('lin_prof',linProfDir),
('trash',userTrashDir)]
('trash',userTrashDir),
('ftp',userTrashDirFtp)]
flagError = False
for name, userDir in userDirs:
if name == "ftp":
if self.clVars.Get("sr_ftp_set") != "on":
continue
if not os.path.exists(userDir):
if not self.createUserDir(uid, gid, userDir):
flagError = True

Loading…
Cancel
Save