HCP Hitachi - Not enumerating the dir

I have a script that should enumrate a remote S3 compatible container. But it does not list any folders.

for /f "delims=" %%D in ('"%rclone_exe%" lsd "%SRC_ROOT%" --dirs-only --recursive') do (
set /a count+=1
set "opt[!count!]=%%~nD"
echo !count!. %%~nD

I know it is configured correctly, because I have the reserve script and it works fine.

welcome to the forum,

need to use use a rclone debug log


what is it?


if you need additional help, when you posted you were asked to answer basic questions.
so far, you have not answered any of them??

By it I mean that configuration between rclone and the remote container is set up correctly.

that is not a valid flag. a debug log would show that

echo off
setlocal enabledelayedexpansion

set _cmd="%rclone_exe% lsf %src_root% --dirs-only --dir-slash=false"
for /f %%D in ('%_cmd%') do (
set /a "count+=1"
set "opt[!count!]=%%D"
echo !count!. %%D)
1. folder01
2. folder02
3. folder03