From 12ad103a00c9b396adf797da20c8e9abdcd2c5da Mon Sep 17 00:00:00 2001 From: Raykov-MS Date: Mon, 6 Jul 2026 22:45:05 +0300 Subject: [PATCH] '.' --- app/pipeline/file_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/pipeline/file_manager.py b/app/pipeline/file_manager.py index b3d6b14..fb62ef6 100644 --- a/app/pipeline/file_manager.py +++ b/app/pipeline/file_manager.py @@ -5,6 +5,7 @@ from dataclasses import dataclass from datetime import datetime from pathlib import Path from urllib.parse import urlparse +from uuid import uuid4 from .config import ( build_date_parts, @@ -199,7 +200,7 @@ def check_network_dir_access( def check_dir_write_access( target_dir: str, samba_conn, source_name: str ) -> tuple[bool, str | None]: - probe_prefix = f".sfm_write_probe_{int(datetime.now().timestamp() * 1000)}" + probe_prefix = f".sfm_write_probe_{uuid4().hex}" probe_src = join_path(target_dir, f"{probe_prefix}.tmp") probe_dst = join_path(target_dir, f"{probe_prefix}_renamed.tmp")