mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-11-07 17:36:15 +00:00
ba_data update
This commit is contained in:
parent
2174ae566d
commit
7ba24ecbcf
146 changed files with 1756 additions and 347 deletions
18
dist/ba_data/python/bacommon/transfer.py
vendored
18
dist/ba_data/python/bacommon/transfer.py
vendored
|
|
@ -31,7 +31,7 @@ class DirectoryManifest:
|
|||
|
||||
files: Annotated[dict[str, DirectoryManifestFile], IOAttrs('f')]
|
||||
|
||||
_empty_hash: str | None = None
|
||||
# _empty_hash: str | None = None
|
||||
|
||||
@classmethod
|
||||
def create_from_disk(cls, path: Path) -> DirectoryManifest:
|
||||
|
|
@ -92,12 +92,12 @@ class DirectoryManifest:
|
|||
)
|
||||
break # 1 error is enough for now.
|
||||
|
||||
@classmethod
|
||||
def get_empty_hash(cls) -> str:
|
||||
"""Return the hash for an empty file."""
|
||||
if cls._empty_hash is None:
|
||||
import hashlib
|
||||
# @classmethod
|
||||
# def get_empty_hash(cls) -> str:
|
||||
# """Return the hash for an empty file."""
|
||||
# if cls._empty_hash is None:
|
||||
# import hashlib
|
||||
|
||||
sha = hashlib.sha256()
|
||||
cls._empty_hash = sha.hexdigest()
|
||||
return cls._empty_hash
|
||||
# sha = hashlib.sha256()
|
||||
# cls._empty_hash = sha.hexdigest()
|
||||
# return cls._empty_hash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue