mirror of
https://github.com/9001/copyparty.git
synced 2026-04-12 23:32:32 -06:00
ftpd: filter directory listings using .hidden
This commit is contained in:
parent
501e8d20e0
commit
9b2cfd3f12
|
|
@ -24,6 +24,7 @@ from .util import (
|
||||||
ODict,
|
ODict,
|
||||||
Pebkac,
|
Pebkac,
|
||||||
exclude_dotfiles,
|
exclude_dotfiles,
|
||||||
|
load_dothidden,
|
||||||
fsenc,
|
fsenc,
|
||||||
ipnorm,
|
ipnorm,
|
||||||
pybin,
|
pybin,
|
||||||
|
|
@ -348,7 +349,8 @@ class FtpFs(AbstractedFS):
|
||||||
vfs_ls.extend(vfs_virt.keys())
|
vfs_ls.extend(vfs_virt.keys())
|
||||||
|
|
||||||
if self.uname not in vfs.axs.udot:
|
if self.uname not in vfs.axs.udot:
|
||||||
vfs_ls = exclude_dotfiles(vfs_ls)
|
dothidden = load_dothidden(fsroot)
|
||||||
|
vfs_ls = exclude_dotfiles(vfs_ls, dothidden)
|
||||||
|
|
||||||
vfs_ls.sort()
|
vfs_ls.sort()
|
||||||
return vfs_ls
|
return vfs_ls
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue