Use microseconds for Receive Mode dir/file names

This commit is contained in:
Miguel Jacq 2021-11-09 12:30:48 +11:00
parent 1b259a208d
commit 096178a9e6
No known key found for this signature in database
GPG key ID: EEA4341C6D97A0B6
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
)