fork download
  1. import os
  2. import os.path
  3.  
  4. sPath = raw_input("Enter the path: ")
  5. if sPath[len(sPath)-1] != '\\' :
  6. sPath += '\\'
  7.  
  8. eList = os.listdir(sPath)
  9. for e in eList :
  10. if os.path.isdir(sPath + e) :
  11. print "Directory: " + e
  12.  
Runtime error #stdin #stdout 0.03s 6360KB
stdin
Standard input is empty
stdout
Enter the path: