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