Ludovic Courtès 24224530d1
daemon: Micro-optimize 'deletePath'.
'remove' calls 'unlink' first and falls back to 'rmdir' upon EISDIR.
This change gets rid of the 'unlink' call for every directory being
removed.

* nix/libutil/util.cc (_deletePath): Call 'unlink' or 'rmdir' depending
on 'st.st_mode', rather than call 'remove'.
2021-11-19 23:04:19 +01:00
..
2020-06-24 19:55:22 +01:00
2021-04-03 22:08:33 +02:00
2014-12-19 22:47:37 +01:00
2014-12-19 22:47:37 +01:00