Add .tmp to temporary capture files for clarity
This commit is contained in:
parent
ea3ae9f898
commit
c249e846dc
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue