/pyDir

A small script that offers commands for files and directories

Primary LanguagePythonMIT LicenseMIT

pyDir

A small script that offers commands for files and directories

How to use

On the command prompt:

> python main.py directory *PATH GOES HERE* mode *MODE GOES HERE*

Path

The path is the full location of a directory or a file (e.g. "C:\Users\Me\myFolder\", or "C:\Users\Me\myFolder\notes.txt")

Mode

The mode specifies what the program will do:

countLinesInFile -> counts lines in a file

countTotalLines -> counts total lines in a directory

getFilesArray -> returns an array of all files in a directory

getFilesTopDown -> prints all files in a directory one by one

getFilesTree -> prints all files in a directory in a tree shape

countFiles -> counts the number of files in a directory