Commit c249e846 authored by Joel Collins's avatar Joel Collins
Browse files

Add .tmp to temporary capture files for clarity

parent ea3ae9f8
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@ class StreamObject(object):
    """
    def __init__(
            self,
            write_to_file: bool=None,
            write_to_file: bool=False,
            keep_on_disk: bool=True,
            filename: str=None,
            folder: str=None,
@@ -81,6 +81,10 @@ class StreamObject(object):

        Defaults to datestamp.
        """
        appendix = ""
        if not self.keep_on_disk:
            appendix += ".tmp"

        file_name = "{}.{}".format(filename, fmt)

        # Create folder and file