2
3
Fork
You've already forked ncsu
0

Add inotify support to monitor/update state #270

Closed
opened 2026年01月14日 16:45:58 +01:00 by yarikoptic · 1 comment
yarikoptic commented 2026年01月14日 16:45:58 +01:00 (Migrated from code.blicky.net)
Copy link

I am interested in that in particular somehow in interconnection with -o option so I could run ncdu as a "service" where it would react to changes (inotify) and update the du status so I could query it at any point.

I am interested in that in particular somehow in interconnection with `-o` option so I could run `ncdu` as a "service" where it would react to changes (inotify) and update the `du` status so I could query it at any point.
yorhel commented 2026年03月04日 22:56:58 +01:00 (Migrated from code.blicky.net)
Copy link

There might be a use case for inotify to auto-refresh the directory while browsing, but implementing that in a way that isn't jarring may be a challenge, and it honestly doesn't seem worth the effort to me.

Writing out a full export on every change as you suggest is far too inefficient to be useful in most cases. You can script around tools like inotifywait(1) if you really want to do that anyway.

There might be a use case for inotify to auto-refresh the directory while browsing, but implementing that in a way that isn't jarring may be a challenge, and it honestly doesn't seem worth the effort to me. Writing out a full export on every change as you suggest is far too inefficient to be useful in most cases. You can script around tools like inotifywait(1) if you really want to do that anyway.
Sign in to join this conversation.
No Branch/Tag specified
zig
zig0.16
master
zig-threaded
openat
chdir
clear
compll
v2.9.3
v2.9.2
v2.9.1
v2.9
v2.8.2
v2.8.1
v2.8
v1.22
v1.21
v2.7
v2.6
v2.5
v1.20
v2.4
v1.19
v2.3
v1.18.1
v2.2.2
v1.18
v2.2.1
v2.2
v1.17
v2.1.2
v2.1.1
v2.1
v2.0.1
v2.0
v2.0-beta3
v2.0-beta2
v2.0-beta1
v1.16
v1.15.1
v1.15
v1.14.2
v1.14.1
v1.14
v1.13
v1.12
v1.11
v1.10
v1.9
v1.8
v1.7
v1.6
v1.5
v1.4
v1.3
v1.2
v1.1
No labels
1.x
2.x
bug
feature
imported
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
selfisekai/ncsu#270
Reference in a new issue
selfisekai/ncsu
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?