(*args, **kwargs)
| 382 | DB_UPLOAD_LOCK = threading.RLock() |
| 383 | DB_UPLOAD_SLOTS = threading.BoundedSemaphore(4) |
| 384 | DB_UPLOAD_ID_RE = re.compile(r'^[A-Za-z0-9_-]{20,80}$') |
| 385 | try: |
| 386 | os.chmod(BASE_DIR, 0o700) |
| 387 | except OSError: |
| 388 | pass |
| 389 | try: |
| 390 | for _temp_path in BASE_DIR.glob('.dbchunk-*.part'): |
| 391 | if _temp_path.is_file() or _temp_path.is_symlink(): |
| 392 | _temp_path.unlink(missing_ok=True) |
| 393 | except OSError: |
| 394 | pass |
| 395 | |
| 396 | # Define file categories for organization |
nothing calls this directly
no test coverage detected