Use microseconds for Receive Mode dir/file names

This commit is contained in:
Miguel Jacq 2021-11-09 12:30:48 +11:00
parent 5346278ad3
commit 7c41721d42
2 changed files with 18 additions and 16 deletions

View file

@ -378,7 +378,7 @@ class ReceiveModeRequest(Request):
# Figure out what files should be saved
now = datetime.now()
date_dir = now.strftime("%Y-%m-%d")
time_dir = now.strftime("%H%M%S")
time_dir = now.strftime("%H%M%S%f")
self.receive_mode_dir = os.path.join(
self.web.settings.get("receive", "data_dir"), date_dir, time_dir
)