Direct path to wrapped fusermount
This commit is contained in:
parent
b9b050fec1
commit
4255c43cf6
@ -98,9 +98,8 @@ def mountTorrent(magnet):
|
||||
"-o", "auto_unmount", # unmount if process is killed
|
||||
"--data-directory=" + btfsDataLocation,
|
||||
magnet,
|
||||
fuseTorrentLocation,
|
||||
env=env
|
||||
])
|
||||
fuseTorrentLocation
|
||||
], env=env)
|
||||
o.communicate() # wait for it to finish
|
||||
sleep(5) # uhhh I guess I need to sleep?
|
||||
|
||||
@ -111,9 +110,8 @@ def umountTorrent():
|
||||
env["PATH"] = "/run/wrappers/bin:" + env["PATH"]
|
||||
o = subprocess.Popen([
|
||||
"fusermount",
|
||||
"-u", fuseTorrentLocation,
|
||||
env=env
|
||||
])
|
||||
"-u", fuseTorrentLocation
|
||||
], env=env)
|
||||
o.communicate() # wait for it to finish
|
||||
os.rmdir(fuseTorrentLocation)
|
||||
if os.path.isdir(btfsDataLocation):
|
||||
|
Loading…
x
Reference in New Issue
Block a user