aboutsummaryrefslogtreecommitdiff

g/nix/libutil/util.cc?id=2902adfc7e0e4e9526ead9d35be14ac4f9b77c1c'>util.cc
AgeCommit message (Expand)Author
2021-11-19daemon: 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'. Ludovic Courtès