when I am trying to list my symbolic link directory in SFTP server (w/ -L) , I got error - "permission denied".
the following is my test env + rclone ls errors.
** [tree] **
u0_a1146@localhost ~ [1]> tree
_rclonetest
├── _symbolic_link-> ../bin
└── log.txt
rclone ls MY_SFTP:_rclonetest --log-level DEBUG --copy-links
2022/06/30 04:31:52 DEBUG : rclone: Version "1.58.1-termux" starting with parameters ["rclone" "ls" "MY_SFTP:_rclonetest" "--log-level" "DEBUG" "--copy-links"]
2022/06/30 04:31:52 DEBUG : Creating backend with remote "MY_SFTP:_rclonetest"
2022/06/30 04:31:52 DEBUG : Using config file from "/data/data/com.termux/files/home/.config/rclone/rclone.conf"
2022/06/30 04:31:53 DEBUG : my_sftp/_rclonetest: New connection [2001:2d8:e637:fa90:5886:41be:dc6f:e3aa]:42408->[64:ff9b::7a22:7284]:77 to "SSH-2.0-OpenSSH_8.2"
2022/06/30 04:31:53 DEBUG : my_sftp/_rclonetest: Using absolute root directory "/_rclonetest"
4943 log.txt
2022/06/30 04:31:53 DEBUG : my_sftp/_rclonetest: Connection OK after error: permission denied
2022/06/30 04:31:53 ERROR : _symboic_link: error listing: error listing "_symboic_link": ** permission denied **
2022/06/30 04:31:53 DEBUG : 11 go routines active
2022/06/30 04:31:53 Failed to ls with 2 errors: last error was: error listing "_symboic_link": ** permission denied **
As you see, there is ** permission denied ** error. I tried "rclone copy/ls MY_SFTP:bin" to eliminate any permission issue with environment and it shows no error like below.
[rclone ls direct link]
rclone ls MY_SFTP:bin --log-level DEBUG --copy-links
2022/06/30 04:37:58 DEBUG : rclone: Version "1.58.1-termux" starting with parameters ["rclone" "ls" "MY_SFTP:bin" "--log-level" "DEBUG" "--copy-links"]
2022/06/30 04:37:58 DEBUG : Creating backend with remote "MY_SFTP:bin"
2022/06/30 04:37:58 DEBUG : Using config file from "/data/data/com.termux/files/home/.config/rclone/rclone.conf"
2022/06/30 04:37:59 DEBUG : my_sftp/bin: New connection [2001:2d8:e637:fa90:5886:41be:dc6f:e3aa]:42464->[64:ff9b::7a22:7284]:77 to "SSH-2.0-OpenSSH_8.2"
2022/06/30 04:37:59 DEBUG : my_sftp/bin: Using absolute root directory "/bin"
18890 Changes
29754 README.md
4049673 peco
191394952 sist2
2022/06/30 04:38:00 DEBUG : 11 go routines active
[rclone copy to symbolic link]
u0_a1146@localhost ~/_NASSYNC [1]> rclone copy dupFiles.txt MY_SFTP:_rclonetest/_symblic_link --log-level DEBUG --copy-links
2022/06/30 04:35:29 DEBUG : rclone: Version "1.58.1-termux" starting with parameters ["rclone" "copy" "dupFiles.txt" "MY_SFTP:_rclonetest/_symblic_link" "--log-level" "DEBUG" "--copy-links"]
2022/06/30 04:35:29 DEBUG : Creating backend with remote "dupFiles.txt"
2022/06/30 04:35:29 DEBUG : local: detected overridden config - adding "{12rtk}" suffix to name
2022/06/30 04:35:29 DEBUG : Using config file from "/data/data/com.termux/files/home/.config/rclone/rclone.conf"
2022/06/30 04:35:29 DEBUG : fs cache: adding new entry for parent of "dupFiles.txt", "local{12rtk}:/data/data/com.termux/files/home/_NASSYNC"
2022/06/30 04:35:29 DEBUG : Creating backend with remote "MY_SFTP:_rclonetest/_symblic_link"
2022/06/30 04:35:30 DEBUG : my_sftp/_rclonetest/_symblic_link: New connection [2001:2d8:e637:fa90:5886:41be:dc6f:e3aa]:42446->[64:ff9b::7a22:7284]:77 to "SSH-2.0-OpenSSH_8.2"
2022/06/30 04:35:30 DEBUG : my_sftp/_rclonetest/_symblic_link: Using absolute root directory "/_rclonetest/_symblic_link"
2022/06/30 04:35:30 DEBUG : dupFiles.txt: Need to transfer - File not found at Destination
2022/06/30 04:35:31 INFO : dupFiles.txt: Copied (new)
2022/06/30 04:35:31 INFO :
Transferred: 1.960 MiB / 1.960 MiB, 100%, 0 B/s, ETA -
Transferred: 1 / 1, 100%
Elapsed time: 1.9s
Is there anybody help to clarify why rclone ls --copy-links seems not work as expected in my case?
thanks!!!