```python
with open(NEW_DIRS_LOG, "a", 0) as directory_log:
  ....
```