openzim / zim-tools

Various ZIM command line tools
https://download.openzim.org/release/zim-tools/
GNU General Public License v3.0
133 stars 35 forks source link

using filesystem read_link to test if sym link already created. #417

Open nickhuang99 opened 4 months ago

nickhuang99 commented 4 months ago
  1. using std::filesystem's read_link.
  2. This is an improvement so only test when failure to avoid expensive system call.
  3. Hopefully this avoid race condition.