Giter Club home page Giter Club logo

folder_creator's Introduction

Whenever I read books to learn code I like to separate out the content from each chapter into its own folder. I use the command line on Mac to mkdir for each chapter, then hit code . to open that chapter from the command line, but this quickly became very repetitive.

folder_creator.py prompts an input to create a folder in your Documents folder and create a folder for the number of chapters you need.

If you use this code, you will need to change parent_dir path to the location you want the newDir to fall. I typically create the newDir as the title of the book I am reading. For instance, Automate the boring stuff, I entered newDir = "automate".

I was really happy with this for two reasons. First, it is a simple script that saves time in just a few lines. Second, I was able to identify a repetitive task and use a For loop to solve for a problem.

Hope you like it! bmassey# folder_creator

folder_creator's People

Contributors

bmasseybrannen avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.