Open eMPee584 opened 7 months ago
Thanks for reporting this. I’ll have to think about how this might be addressed in a general fashion.
For cases like these it might make sense to use jc
as a python library and create a quick python script to do what you want. (import jc
)
The stat
parser also comes in a streaming output option (python generator) that can help with memory utilization. (stat_s
)
When
stat
ing a directory with some latin1-encoded filenames, I was getting this error:After figuring out that piping
stat
's output toiconv -f ISO-8859-1
would solve that but break unicode characters instead, I crudely patched my localjc
with this hack:I looked into adding a generic
--locale
option, but as I'm not familiar with thejc
code base and there is no other option taking a parameter yet, I'm filing this report instead..P.S.: .. ouch just realized that now I'll have to invoke a separate
jc
instance for every single file, which incurs heavy interpreter overhead .. also tried to speed that up withpypy3
but that actually was worse even because very little computation takes place. Ah meh, at least it works™ .. "just" wanted to recursively back up a partition'sctime
values.. 😅💦