Skip to content

Instantly share code, notes, and snippets.

@classmember
Created October 8, 2017 12:52
Show Gist options
  • Select an option

  • Save classmember/0832cfa302ebb4e2670808a378e87ee2 to your computer and use it in GitHub Desktop.

Select an option

Save classmember/0832cfa302ebb4e2670808a378e87ee2 to your computer and use it in GitHub Desktop.
>>> out_files = []
>>> for dirpath, subidrs, files in os.walk('/home/kolby/Desktop'):
... for item in files:
... print dirpath + item
...
/home/kolby/Desktoplabsim1.3_kolby_heacock.pdf
/home/kolby/Desktopsteam.desktop
/home/kolby/Desktoplabsim1.2_kolby_heacock.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment