Skip to content

Instantly share code, notes, and snippets.

@ViktorovEugene
ViktorovEugene / temp_dir.py
Created February 2, 2016 13:00
Work with temporary files. Python 2.
from __future__ import print_function
import os.path
import tempfile
import shutil
import file_encryptor
def func(source_file):
source_file_name = source_file.name