Use ls -A

This would allow to upload hidden files or directories.
This commit is contained in:
Xavier Del Campo Romero 2023-11-23 10:04:02 +01:00
parent bf29a79ebe
commit 0b2f3b1040
Signed by: xavi
GPG Key ID: 84FF3612A9BF43F2
1 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ upload_dir()
{
local SRC="$1"
local DIR="$2"
local N=$(cd "$1" && ls | wc -l)
local N=$(cd "$1" && ls -A | wc -l)
local I=1
test $N -eq 0 && return
@ -133,7 +133,7 @@ upload_dir()
I=$(($I + 1))
done <<-EOF
$(cd "$1" && ls)
$(cd "$1" && ls -A)
EOF
LEVEL=$(($LEVEL - 1))