I am having trouble with a particular for loop in my code.The error I get is "TypeError: coercing to Unicode: need string or buffer,list found
My code is :
current_dir = os. getcwd()
target_dire = [os.listdir(current_dir)]
for dirs in target_dirs:
if is.path.isdir(dirs):
print dirs[0]
else:
pass
Thanks in advance