Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rclone reports all file sizes as 0 #371

Closed
paolobarbolini opened this issue Jun 28, 2021 · 2 comments · Fixed by #377
Closed

rclone reports all file sizes as 0 #371

paolobarbolini opened this issue Jun 28, 2021 · 2 comments · Fixed by #377

Comments

@paolobarbolini
Copy link
Contributor

paolobarbolini commented Jun 28, 2021

rclone v1.55.1 lists all files as zero sized, while testing against speedtest.tele2.net FTP server works correctly.

Reproduction steps

  • Run the unftp-sbe-fs basic example
  • Setup the remote using rclone config
  • Run rclone lsl -vvv --dump bodies RemoteName:/
  • All file lengths are reported as 0
@hannesdejager
Copy link
Collaborator

hannesdejager commented Jul 2, 2021

Thanks for logging the issue @paolobarbolini

@paolobarbolini
Copy link
Contributor Author

I looked into it and it seems like rclone doesn't like not knowing the number of links a file has. Adding 1 to

"{filetype}{permissions} {owner:>12} {group:>12} {size:#14} {modified:>12} {path}",
between {permissions} and {owner:>12} fixes it for me

hannesdejager pushed a commit that referenced this issue Aug 25, 2021
In the future links could also be implemented for windows (if I'm reading this right) and wasi once the respective APIs stabilize.

While at it also implements gid and uid for linux and unix targets on the file system backend.

Fixes #371, MR #377
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants