2
3
Fork
You've already forked ncsu
0

remove content of a directory #189

Open
opened 2022年02月21日 20:06:08 +01:00 by frambooisier · 2 comments
frambooisier commented 2022年02月21日 20:06:08 +01:00 (Migrated from code.blicky.net)
Copy link

Hello, is there a way to delete the content of the directory but not the directory itself? Or a way to select multiple files in a directory to be deleted all at once?

Hello, is there a way to delete the content of the directory but not the directory itself? Or a way to select multiple files in a directory to be deleted all at once?
yorhel commented 2022年02月22日 08:06:38 +01:00 (Migrated from code.blicky.net)
Copy link

There've been requests for additional deletion operations, most popular ones:

  • Clearing a directory
  • Truncating a file (keeping inode)
  • Truncating a file (new inode)

While useful, I'm not sure how to expose these functions in the UI without turning ncdu too much into a generic file manager. :/

There've been requests for additional deletion operations, most popular ones: - Clearing a directory - Truncating a file (keeping inode) - Truncating a file (new inode) While useful, I'm not sure how to expose these functions in the UI without turning ncdu too much into a generic file manager. :/
frambooisier commented 2022年02月27日 00:40:38 +01:00 (Migrated from code.blicky.net)
Copy link

Im not sure if I understand, by UI exposure you mean buttons/shortcut remap? What would it mean if NCDU would bcome generic file manager?

Im not sure if I understand, by UI exposure you mean buttons/shortcut remap? What would it mean if NCDU would bcome generic file manager?
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#189
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?