Skip to content

Commit

Permalink
Change self.__directory to self.path
Browse files Browse the repository at this point in the history
  • Loading branch information
campb303 committed Jun 17, 2021
1 parent ab40762 commit ff13266
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/webqueue2api/parser/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ class Queue:

def __init__(self, name: str) -> None:
self.name = name
self.__directory = Path(config.queue_directory, self.name)
if not self.__directory.exists():
raise QueueDoesNotExistError(str(self.__directory))
self.path = Path(config.queue_directory, self.name)
if not self.path.exists():
raise QueueDoesNotExistError(str(self.path))

self.items = self.__getItems()

Expand All @@ -46,8 +46,8 @@ def __getItems(self) -> list:
"""
items = []

for item in os.listdir(self.__directory):
item_path = Path(self.__directory, item)
for item in os.listdir(self.path):
item_path = Path(self.path, item)

isFile = True if os.path.isfile(item_path) else False

Expand Down

0 comments on commit ff13266

Please sign in to comment.