That will depend on how the sftp server is identifying the links to rclone.
Here is how the SFTP backend identifies links - as non regular files.
// If file is a symlink (not a regular file is the best cross platform test we can do), do a stat to
// pick up the size and type of the destination, instead of the size and type of the symlink.
if !info.Mode().IsRegular() && !info.IsDir() {
if f.opt.SkipLinks {
// skip non regular file if SkipLinks is set
continue
}
So I would guess that the windows sftp server is identifying these as regular files.
Or are they pointing at directories?
Which sftp server is this? Have you tried rclone serve sftp on Windows?
Hi ncw, thanks for your reply, and also for such a complete and powerful program.
It is sftp-server.exe, installed by OpenSSH Server as 'optional feature' in Windows 10. I have not yet tried with rclone serve ftp.
Surely, the problem is the one you say. While it would be nice to correctly identify the junction points, I guess there is nothing to do if the server identifies them as regular files!
Yes, they are junction points pointing to directories. Specifically, all the ones that Windows creates by default on all users, such as:
C:/Users/username/Application Data
C:/Users/username/Documents/My Music
C:/Users/username/Documents/My Pictures
C:/Users/username/Documents/My Videos
C:/Users/username/Cookies
C:/Users/username/Local Settings
C:/Users/username/My Documents
C:/Users/username/NetHood
C:/Users/username/PrintHood
C:/Users/username/Recent
C:/Users/username/SendTo
C:/Users/username/Start Menu
C:/Users/username/Templates