On 12Oct2022 15:16, Dan Sommers <2qdxy4rzwzuui...@potatochowder.com> wrote:
rm doesn't take that long.  Why are you detaching them?

For big things it takes quite a while. On slow discs it can take quite a while. For directory trees with many files it can take quite a while. For remove filesystems, even a local to your LAN NAS, it can take quite a while.

Certainly I've got real world modern day things right now where "quite a while" can be many minutes.

I've got an `rmr` script of my own whose entire function is to rename the target to something like `.frm.blah` and then remove `.frm.blah` in the background. I use it a _lot_.

Ancient anecdote. We got funky new workstations at Uni long ago. For the first time in my life "rm filename" came back to the command prompt with no perceptable delay. So fast that I first wondered if it had worked at all. Previously we'd been using shared minicomputers (PDPs, Vaxen).

Cheers,
Cameron Simpson <c...@cskk.id.au>
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to