Browse Source

correct regex in check_mount

pull/1463/head
jcfp 5 years ago
committed by Safihre
parent
commit
e09b7e2c45
  1. 4
      sabnzbd/filesystem.py

4
sabnzbd/filesystem.py

@ -351,11 +351,11 @@ def check_mount(path):
Retry 6 times with an interval of 1 sec. Retry 6 times with an interval of 1 sec.
""" """
if sabnzbd.DARWIN: if sabnzbd.DARWIN:
m = re.search(r"^(/Volumes/[^/]+)/", path, re.I) m = re.search(r"^(/Volumes/[^/]+)", path, re.I)
elif sabnzbd.WIN32: elif sabnzbd.WIN32:
m = re.search(r"^([a-z]:\\)", path, re.I) m = re.search(r"^([a-z]:\\)", path, re.I)
else: else:
m = re.search(r"^(/(?:mnt|media)/[^/]+)/", path) m = re.search(r"^(/(?:mnt|media)/[^/]+)", path)
if m: if m:
for n in range(sabnzbd.cfg.wait_ext_drive() or 1): for n in range(sabnzbd.cfg.wait_ext_drive() or 1):

Loading…
Cancel
Save