Skip to content

Automatically create x amount of folders in the current directory

License

Notifications You must be signed in to change notification settings

PySecNinja/create-directories

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This script creates 100 folders named day1-100 in the current directory you run the script from.

See the Usage Section in each .py file to see what the code does

1. Create virtual python env

python -m venv venv && source venv/bin/activate #Linux
python -m venv venv && \venv\Scripts\activate #Windows

Creates virtual python environment

python -m venv venv 

Steps into virtual environment

source .venv/bin/activate

See the terminal now has the name of your virtual environment

(venv) drew@Andrews-MacBook-Pro% 

To Step out of the virtual environment

deactivate

2. Install dependencies (Inside of Virtual environment)

pip install -r requirements.txt

3 Run the Code

python main.py

TROUBLESHOOTING

pip list
python --version 
pip --version 
If trying to do this with VS CODE ensure you have your files open on the left side aka the workspace 

Command+shift+p select interpreter and chose .venv/bin python

About

Automatically create x amount of folders in the current directory

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages