Browse Source
Added DepotFile missing properties (#414)
* Added DepotFile missing properties
pull/426/head
alec-hs
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
16 additions and
0 deletions
-
steam/core/manifest.py
|
|
@ -73,6 +73,22 @@ class DepotFile(object): |
|
|
|
""" |
|
|
|
return os.path.join(*self.linktarget_raw.split('\\')) |
|
|
|
|
|
|
|
@property |
|
|
|
def sha_content(self): |
|
|
|
"""File content SHA1 |
|
|
|
|
|
|
|
:type: bytes |
|
|
|
""" |
|
|
|
return self.file_mapping.sha_content |
|
|
|
|
|
|
|
@property |
|
|
|
def sha_filename(self): |
|
|
|
"""Filename SHA1 |
|
|
|
|
|
|
|
:type: bytes |
|
|
|
""" |
|
|
|
return self.file_mapping.sha_filename |
|
|
|
|
|
|
|
@property |
|
|
|
def size(self): |
|
|
|
"""File size in bytes |
|
|
|