2 ms·
Wouldn't you need a step 1.5: rm -rf <old directory>
by dreamcompiler 5y ago
Wouldn't you need a step 1.5:
rm -rf <old directory>
- jhgb 5y agoWell, apparently I would, which mildly sucks because it takes too much time that I wanted to avoid completely by the ole' atomic rename technique. Worst case, at least one could possibly rename the old directory to a temporary name and then immediately rename the new directory with the new file links to the old name and hope for the best. Sadly the atomic technique doesn't seem to work here. I never noticed that I can't do this with a directory. Well, shit.