aboutsummaryrefslogtreecommitdiff
path: root/gnu/installer/connman.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2021-11-19 14:53:25 +0100
committerLudovic Courtès <ludo@gnu.org>2021-11-19 23:04:19 +0100
commit24224530d1f4a70808d003ba8dce849b77625b79 (patch)
tree553e894234a993037eeb90a3a3074ecf28c36c96 /gnu/installer/connman.scm
parent256c3e714a459af6db2343c9120c7180c5a14462 (diff)
downloadguix-24224530d1f4a70808d003ba8dce849b77625b79.tar.gz
guix-24224530d1f4a70808d003ba8dce849b77625b79.zip
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'.
Diffstat (limited to 'gnu/installer/connman.scm')
0 files changed, 0 insertions, 0 deletions