Skip to content

Codebase

User-friendly code tutorials

  • Javascript
  • CSS
  • PHP
  • WordPress
  • Miscellaneous
Codebase

Category: Python

Python dir notes

Use os.listdir (or os.scandir in >= 3.5) to list items in a single directory, use os.walk (which uses os.listdir or os.scandir in >= 3.5) to list items in a directory tree.

Using os.walk for just a single directory is not as efficient as just using the function it uses internally to do that job.

Continue reading “Python dir notes”

Author TedwoodPosted on April 12, 2018May 29, 2018Categories Python

Python Working with Directories Reference

My notes compiled on the topic of working with directories, navigating folders and listing files etc.
Continue reading “Python Working with Directories Reference”

Author TedwoodPosted on April 12, 2016Categories Python

Python File Reading and Writing Reference

Just my personal reference notes for everything related to reading and writing files in Python.
Continue reading “Python File Reading and Writing Reference”

Author TedwoodPosted on April 11, 2016Categories Python

Categories

  • CSS
  • Javascript
  • PHP
  • Python
  • SQL
  • Uncategorized
  • WordPress

Archives

  • October 2022
  • September 2022
  • December 2018
  • August 2018
  • May 2018
  • April 2018
  • January 2018
  • December 2017
  • October 2017
  • September 2017
  • August 2017
  • July 2017
  • March 2017
  • September 2016
  • April 2016
  • February 2016
  • January 2016
  • January 2015
  • April 2014
  • February 2014
  • January 2014
  • December 2013
  • September 2013
  • April 2013
  • May 2012
  • March 2012
  • January 2012

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
  • Javascript
  • CSS
  • PHP
  • WordPress
  • Miscellaneous
Codebase Proudly powered by WordPress