Re: [PATCH] Fix trash deep count



This doesn't quite work though: The deep-count request is set to
REQUEST_DONE on the first pass through (and all values set to 0), so it
won't try to count again on the second pass (with the known filetype).
AFAICT it'll always come up with "nothing" for the directories with
initially unknown types, even after the type is determined.
You can make it work by setting the request to NOT_STARTED in
deep_count_start if the file type is unknown. I'm not sure it's the
right fix though, it seems to be a systematic problem (it also applies
to the mime_list and directory_count requests) - There seems to be no
guarantee that you got the file type at this point, which will make
these functions bail out.

Martin





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]