mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-02 06:26:10 -04:00
Use microseconds for Receive Mode dir/file names
This commit is contained in:
parent
5346278ad3
commit
7c41721d42
2 changed files with 18 additions and 16 deletions
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue