Skip to content

Conversation

@sxyazi
Copy link
Owner

@sxyazi sxyazi commented Apr 28, 2025

Follow up to #2683

How to use:

local total = 0
local it = fs.calc_size(Url("/tmp/yazi"))

while true do
  local found = it:recv()
  if found then
    ya.dbg("found: " .. found)
    total = total + found
  else
    break
  end
end

ya.dbg("done! total: " .. total)

Output:

found: 1956532522
found: 911553073
found: 1100032563
found: 1079350830
found: 943483457
found: 1160212602
found: 490316018
found: 821866
found: 104071422
found: 256609193
found: 512100934
found: 473746322
found: 957889320
found: 1439720840
found: 59380140
done! total: 11445821102

@sxyazi sxyazi merged commit 2c99075 into main Apr 28, 2025
6 checks passed
@sxyazi sxyazi deleted the pr-df328956 branch April 28, 2025 13:56
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants