From: achbed Date: Sat, 24 Jan 2015 08:02:13 +0000 (-0600) Subject: Added base_dir to paths read from an m3u file X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=cf3c6dbe9f8e07ba5bd2757d5472c3702b67d1bf;p=deefuzzer.git Added base_dir to paths read from an m3u file --- diff --git a/deefuzzer/station.py b/deefuzzer/station.py index 5804866..f558e4e 100644 --- a/deefuzzer/station.py +++ b/deefuzzer/station.py @@ -420,7 +420,9 @@ class Station(Thread): try: for path in f.readlines(): if '#' != path[0]: - file_list.append(path[:-1]) + fp = self._path_add_base(path.strip()) + if os.path.isfile(fp): + file_list.append(fp) except: f.close() except: