Advertisement
Siorai

Untitled

Dec 29th, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1.     def fetchTorrentFile(bt_name, torrentFileDirectory):
  2.         for path, dirs, files in os.walk(torrentFileDirectory):
  3.             for EachTorrent in files:
  4.                 if bt_name in EachTorrent:
  5.                     filepath = os.path.join(path, EachTorrent)
  6.                     return filepath
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement