-
Notifications
You must be signed in to change notification settings - Fork 332
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
dircounts is not refreshed with load command #776
Comments
@srimadhan11 What do you mean when you say the count becomes inconsistent? Can you provide a steps to reproduce here? |
@gokcehan Sorry for not including the steps to reproduce the bug in my previous comment. I have explained them below. Initial directory structure,
Steps:
I am using lf with version
|
@srimadhan11 I think you are right, this should update with Not quite related to this issue but |
@srimadhan11 I have taken a look at this today and unfortunately it does not seem as easy as I first imagined. The issue is that dircount is stored in the file itself in the parent's list. Since parent directory is not changed in this command, the directory is not refreshed and the dircount stays the same. So this behavior is somewhere in between a bug and working as intended. I would love to see an easy solution for this but I wouldn't get my expectations high if I were you. If you are using a custom command for creating a new file, maybe you can consider adding a manual remote |
Ohh okay, I thought it might be a small bug. Thank you for looking into this issue :) |
Directory's
dircounts
is not changing, when the number of sub files/directories has been changed. Using theload
command doesn't work, so settingperiod
option to non-zero is also not working. However, I was able to usereload
command to update the sub files/directories count.I have disabled the
dircache
option (#627 #673). But disabling the dircache (along withset period 1
) only updates the changes in the sub files/directories list, not the sub files/directories count. Because of which, thedircounts
becomes inconsistent.So, is this a bug? or maybe I am missing something?
The text was updated successfully, but these errors were encountered: