Lsd show current time with backblaze b2

What is the problem you are having with rclone?

the command rclone lsd xxx:/ always show the current time of the computer where I run the command. Tried on two different machine.

Run the command 'rclone version' and share the full output of the command.

Yes:

rclone version

rclone v1.62.2

  • os/version: rocky 8.7 (64 bit)
  • os/kernel: 5.4.241-1.el8.elrepo.x86_64 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.20.2
  • go/linking: static
  • go/tags: none

Which cloud storage system are you using? (eg Google Drive)

backblaze b2

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone lsd myb2:/

The rclone config contents with secrets removed.

[myb2]
type = b2
account =
key =
hard_delete = true

A log from the command with the -vv flag

rclone -vv lsd myb2:/buckx5/prix5

2023/04/25 14:23:44 DEBUG : rclone: Version "v1.62.2" starting with parameters ["rclone" "-vv" "lsd" "myb2:/buckx5/prix5"]
2023/04/25 14:23:44 DEBUG : Creating backend with remote "myb2:/buckx5/prix5"
2023/04/25 14:23:44 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2023/04/25 14:23:45 DEBUG : Couldn't decode error response: EOF
2023/04/25 14:23:45 DEBUG : fs cache: renaming cache item "myb2:/buckx5/prix5" to be canonical "myb2:buckx5/prix5"
-1 2023-04-25 14:23:46 -1 archive
-1 2023-04-25 14:23:46 -1 backup
2023/04/25 14:23:46 DEBUG : 8 go routines active

I tried on different machine with different bucket, same result.

Same, wrong, behavior with lsjson:

rclone -vv lsjson myb2:/buckx5/prix5

2023/04/25 14:33:13 DEBUG : rclone: Version "v1.62.2" starting with parameters ["rclone" "-vv" "lsjson" "myb2:/buckx5/prix5"]
2023/04/25 14:33:13 DEBUG : Creating backend with remote "myb2:/buckx5/prix5"
2023/04/25 14:33:13 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2023/04/25 14:33:14 DEBUG : Couldn't decode error response: EOF
2023/04/25 14:33:14 DEBUG : fs cache: renaming cache item "myb2:/buckx5/prix5" to be canonical "myb2:buckx5/prix5"
[
{"Path":"archive","Name":"archive","Size":-1,"MimeType":"inode/directory","ModTime":"2023-04-25T14:33:15.704+03:00","IsDir":true},
{"Path":"backup","Name":"backup","Size":-1,"MimeType":"inode/directory","ModTime":"2023-04-25T14:33:15.704+03:00","IsDir":true}
]
2023/04/25 14:33:15 DEBUG : 8 go routines active

The command lsl woks fine.

Thanks,
Levi

Directories will always have current time as rclone only cares about files.

Cool :upside_down_face:
Thank you for the quick response!

Not always - pcloud EU does not show the current date/time but I believe the creation date/time. Note pcloud US might work differently (ie. Pcloud - Authentication issue on European servers solved - Great job)

Rclone v1.62 show the current time for directories (and objects) if it isn't known.

The not released yet v1.63 (currently the latest beta) will show a fixed date

  --default-time Time                  Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)

This will stop various tools getting excited when the directory modification date changes.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.