So, I have created some code which goes a little bit like this:
import os
while True:
DIRFIND = input(">")
DIRREAD = os.system("dir %s > tmp" % (DIRFIND))
with open("tmp","r") as myfile:
DIRREAD = myfile.read().replace("\n", "")
print(DIRREAD)
However nothing is written in the tmp file that is created and I have a sneaking suspicion that this has something to do with the syntax of the %s / % part of the code resulting in an error. Any ideas??