path), and also by ctypes. Remove the directory by calling close() on the returned object or using it in a with statement. r