mirror of
https://gitlab.sectorq.eu/jaydee/python.git
synced 2025-12-14 10:44:52 +01:00
bitwarden
This commit is contained in:
@@ -124,7 +124,7 @@ if _ACTION == "join":
|
|||||||
for p in parts:
|
for p in parts:
|
||||||
f.write(f"file '{p}'\n")
|
f.write(f"file '{p}'\n")
|
||||||
file_stats = os.stat(p)
|
file_stats = os.stat(p)
|
||||||
final_size += file_stats.st_size / (1024 * 1024)
|
final_size += file_stats.st_size
|
||||||
f.close()
|
f.close()
|
||||||
print(final_size)
|
print(final_size)
|
||||||
print(_FULL_PATH)
|
print(_FULL_PATH)
|
||||||
@@ -178,15 +178,18 @@ if _ACTION == "join":
|
|||||||
with tqdm(total=100, position=1, desc="Join") as pbar:
|
with tqdm(total=100, position=1, desc="Join") as pbar:
|
||||||
while True:
|
while True:
|
||||||
|
|
||||||
#pbar.update(1)
|
#pbar.update()
|
||||||
try:
|
try:
|
||||||
file_stats = os.stat(export_name)
|
file_stats = os.stat(export_name)
|
||||||
print(file_stats.st_size )
|
cur_size = file_stats.st_size
|
||||||
|
final_size
|
||||||
|
cur_stat = (cur_size / final_size) * 100
|
||||||
|
print(cur_stat)
|
||||||
pass
|
pass
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
time.sleep(1)
|
time.sleep(3)
|
||||||
|
|
||||||
# get the output
|
# get the output
|
||||||
print(ff.stderr)
|
print(ff.stderr)
|
||||||
|
|||||||
Reference in New Issue
Block a user