`opendir` does not check if the directory has writing permissions, this made me crazy :punch: