Skip to content

Instantly share code, notes, and snippets.

@kagermanov27
Created May 19, 2022 12:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kagermanov27/4930dbeab6de25facef4543b9c473967 to your computer and use it in GitHub Desktop.
Save kagermanov27/4930dbeab6de25facef4543b9c473967 to your computer and use it in GitHub Desktop.
if self.query.q in os.listdir("datasets/test"):
file_names = os.listdir("datasets/test/{}".format(self.query.q))
else:
os.mkdir("datasets/test/{}".format(self.query.q))
file_names = os.listdir("datasets/test/{}".format(self.query.q))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment