mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-07-18 21:09:41 +02:00
add log
This commit is contained in:
parent
55682875a1
commit
ce8374b46c
1 changed files with 2 additions and 1 deletions
|
@ -511,7 +511,7 @@ def mount_device():
|
|||
try:
|
||||
subprocess.run(
|
||||
["sudo",
|
||||
"mount", "-o", "uid=1000,gid=1000,dmask=0000,fmask=0000",
|
||||
"mount", "-o", "uid=1000,gid=1000,dmask=0000,fmask=0000",
|
||||
device.device_node, "/media/box"],
|
||||
stdout=subprocess.DEVNULL,
|
||||
stderr=subprocess.DEVNULL,
|
||||
|
@ -597,6 +597,7 @@ def scan():
|
|||
global mount_point, infected_files, file_count, f_used
|
||||
|
||||
# get device size
|
||||
logging.info(f'start scan')
|
||||
try:
|
||||
statvfs = os.statvfs(mount_point)
|
||||
except Exception as ex:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue