Hi,
My first bug here after using rclone for 3+ years. It's very simple to reproduce if Im not wrong. After updating several machines to v1.65 a simple "rclone cat" of a local file in Windows (any) says ERROR : : error listing: directory not found.
I checked several previous versions work as usual with just:
rclone.old.exe cat file
Also Linux does not look to have the problem.
Regards,
Manuel
Run the command 'rclone version' and share the full output of the command.
rclone v1.65.0
os/version: Microsoft Windows Server 2012 R2 Standard (64 bit
os/kernel: 6.3.9600.20721 (x86_64)
os/type: windows
os/arch: amd64
go/version: go1.21.4
go/linking: static
go/tags: cmount
Which cloud storage system are you using? (eg Google Drive)
NONE
The command you were trying to run (eg rclone copy /tmp remote:tmp)
rclone_1.64.2.exe cat nosuchfile.ext
2023/12/05 10:00:23 ERROR : : error listing: directory not found
2023/12/05 10:00:23 Failed to cat with 2 errors: last error was: directory not found
rclone_1.65.0.exe cat nosuchfile.ext
2023/12/05 10:03:03 ERROR : : error listing: directory not found
2023/12/05 10:03:03 Failed to cat with 2 errors: last error was: directory not found
for a given source path
rclone checks to see if the path is a file.
if the file does not exist, then rclone checks to see if the path is a directory.
if the directory does not exist, then rclone errors with directory not found
if the file exists, then rclone will output adding new entry for parent of "file.ext", "//?/c:/data/rclone"
if the file does not exist, then rclone will output renaming cache item "nosuchfile.ext" to be canonical "//?/c:/data/rclone/nosuchfile.ext"
The only place I saw it working (v1.65 of course) is when the file is where the binary.
Correction, ncw was right, it fails for files in the root folder. But that's where I most usually put them (sorry for that)
It makes sense "go" maybe the "culprit"
PS Z:> rclone.165.exe ls rc7.ps1 -vv 2023/12/05 17:22:01 DEBUG : rclone: Version "v1.65.0" starting with parameters ["C:\windows\rclone.165.exe" "ls" "rc7.ps1" "-vv"] 2023/12/05 17:22:01 DEBUG : Creating backend with remote "rc7.ps1" 2023/12/05 17:22:01 DEBUG : Using config file from "C:\windows\rclone.conf" 2023/12/05 17:22:01 DEBUG : fs cache: adding new entry for parent of "rc7.ps1", "//?/Z:" 2023/12/05 17:22:01 ERROR : : error listing: directory not found 2023/12/05 17:22:01 DEBUG : 2 go routines active 2023/12/05 17:22:01 Failed to ls with 2 errors: last error was: directory not found