import errno
import glob
import hashlib
-import io
import logging
import os
import pathlib
>>> os.path.exists(path)
True
"""
- logger.debug(f"Creating path {path}")
+ logger.debug("Creating path %s", path)
previous_umask = os.umask(0)
try:
os.makedirs(path)
class FileWriter(object):
+ """A helper that writes a file to a temporary location and then moves
+ it atomically to its ultimate destination on close.
+
+ """
+
def __init__(self, filename: str) -> None:
self.filename = filename
uuid = uuid4()