- if os.path.exists(pj(self.path, "order")):
- with open(pj(self.path, "order")) as s:
- return True, [line.strip() for line in s if os.path.exists(pj(self.path, line.strip()))]
+ if (self.path/"order").exists():
+ with (self.path/"order").open("r") as s:
+ return True, [line.strip() for line in s if (self.path/line.strip()).exists()]