thds.adls 3.2.20250602165818__py3-none-any.whl → 3.2.20250602182927__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of thds.adls might be problematic. Click here for more details.
- thds/adls/download.py +6 -1
- {thds_adls-3.2.20250602165818.dist-info → thds_adls-3.2.20250602182927.dist-info}/METADATA +1 -1
- {thds_adls-3.2.20250602165818.dist-info → thds_adls-3.2.20250602182927.dist-info}/RECORD +6 -6
- {thds_adls-3.2.20250602165818.dist-info → thds_adls-3.2.20250602182927.dist-info}/WHEEL +0 -0
- {thds_adls-3.2.20250602165818.dist-info → thds_adls-3.2.20250602182927.dist-info}/entry_points.txt +0 -0
- {thds_adls-3.2.20250602165818.dist-info → thds_adls-3.2.20250602182927.dist-info}/top_level.txt +0 -0
thds/adls/download.py
CHANGED
|
@@ -37,13 +37,18 @@ def _atomic_download_and_move(
|
|
|
37
37
|
dest: StrOrPath,
|
|
38
38
|
properties: ty.Optional[FileProperties] = None,
|
|
39
39
|
) -> ty.Iterator[azcopy.download.DownloadRequest]:
|
|
40
|
+
known_size = (properties.size or 0) if properties else 0
|
|
40
41
|
with tmp.temppath_same_fs(dest) as dpath:
|
|
41
42
|
with open(dpath, "wb") as f:
|
|
42
|
-
known_size = (properties.size or 0) if properties else 0
|
|
43
43
|
logger.debug("Downloading %s", fqn)
|
|
44
44
|
yield azcopy.download.DownloadRequest(
|
|
45
45
|
report_download_progress(f, str(fqn), known_size), dpath
|
|
46
46
|
)
|
|
47
|
+
if known_size and os.path.getsize(dpath) != known_size:
|
|
48
|
+
raise ValueError(
|
|
49
|
+
f"Downloaded file {dpath} has size {os.path.getsize(dpath)}"
|
|
50
|
+
f" but expected {known_size}."
|
|
51
|
+
)
|
|
47
52
|
try:
|
|
48
53
|
os.rename(dpath, dest) # will succeed even if dest is read-only
|
|
49
54
|
except OSError as oserr:
|
|
@@ -7,7 +7,7 @@ thds/adls/conf.py,sha256=q1SPrgb46NpobVzwt_Oyv71-BvsIbZLq9nRWS3LZjz0,1990
|
|
|
7
7
|
thds/adls/copy.py,sha256=jUWbGvTpb4B3yRGS0nhGSbDzqRPzUqYgH0z1lFRJB3k,6365
|
|
8
8
|
thds/adls/dbfs.py,sha256=pPAjbIZRKJsaXKQljDMUgqS_zy1yKeEZHGMueXbuv3g,2219
|
|
9
9
|
thds/adls/defaults.py,sha256=GGq5Pn4r-8cX4bZItp4nnwWAAz7S07pzPoOegw0y5Fw,676
|
|
10
|
-
thds/adls/download.py,sha256=
|
|
10
|
+
thds/adls/download.py,sha256=dMcV1Q5BB3QkeXKeSwazdVE1DWM-kpfp_NCoIeaPYjE,18162
|
|
11
11
|
thds/adls/download_lock.py,sha256=ttD2GhPNRnITNoV1XH2PvKbMsHppZirjy3RZ4P4kgKM,2826
|
|
12
12
|
thds/adls/errors.py,sha256=B_rMsQvQnNmP_sf-x8kmGsv2vIeOh4G9kVbdNVyk350,1469
|
|
13
13
|
thds/adls/etag.py,sha256=ct7jpHhNFcKzbekn5rZ3m6DhjK48A7qOZGwDiHkc-pc,242
|
|
@@ -33,8 +33,8 @@ thds/adls/resource/up_down.py,sha256=3uNlTvm2gVhSyYdQTBwsGecOgwtINQfINckR-awwV0Y
|
|
|
33
33
|
thds/adls/tools/download.py,sha256=vvBO8lSDl9oPugv75qpCkoemT9pOM9BV6yeExlkyG08,1594
|
|
34
34
|
thds/adls/tools/ls.py,sha256=OgEaIfTK359twlZIj-A0AW_nv81Z6zi0b9Tw6OJJfWA,1083
|
|
35
35
|
thds/adls/tools/upload.py,sha256=eMk4pdug1aCMPDDWpIE3Zoq77i5APp9Uuh-sVCCDNJE,493
|
|
36
|
-
thds_adls-3.2.
|
|
37
|
-
thds_adls-3.2.
|
|
38
|
-
thds_adls-3.2.
|
|
39
|
-
thds_adls-3.2.
|
|
40
|
-
thds_adls-3.2.
|
|
36
|
+
thds_adls-3.2.20250602182927.dist-info/METADATA,sha256=rJGnqOSdWRgaLDD_nc-iqvgETkCwN_kMpI_Zn3tHmzk,543
|
|
37
|
+
thds_adls-3.2.20250602182927.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
38
|
+
thds_adls-3.2.20250602182927.dist-info/entry_points.txt,sha256=uTqreT1AIwqJboMfLv5w6sviM8mNbAkln765gIjzoA4,152
|
|
39
|
+
thds_adls-3.2.20250602182927.dist-info/top_level.txt,sha256=LTZaE5SkWJwv9bwOlMbIhiS-JWQEEIcjVYnJrt-CriY,5
|
|
40
|
+
thds_adls-3.2.20250602182927.dist-info/RECORD,,
|
|
File without changes
|
{thds_adls-3.2.20250602165818.dist-info → thds_adls-3.2.20250602182927.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{thds_adls-3.2.20250602165818.dist-info → thds_adls-3.2.20250602182927.dist-info}/top_level.txt
RENAMED
|
File without changes
|