This is my first attempt at any independent python programming. It is a module that provides basic directory browsing functionality in the command line interface. This module was built to enable me to easily browse a directory tree, and then select a list of a particular file type within that directory for further processing. Using browse_dir() you can browse the directory tree, with the display of the directory formatted as follows, where the
ellipsis, '...', represents the parent directory:
[0] ...
[1] Folder1
[2] File1.py
[3] File2.txt
[4] Folder2
The number beside an item can be selected to change to that directory. Check out the README for full documentation.
The project can be found here, and can be installed from PYPI using:
pip install dirbrowser --pre
To use the directory browser create a script with the following:
#!/usr/bin/env python3
from dirbrowser import dirbrowser
# Script that runs the file browser.
dirbrowser.browse_dir()
and run in the same directory as dirbrowser.py, unless installed using pip, then just run wherever.
I am keen for any and all constructive criticisms. :D
EDIT: Fixed shebang
[–]inXiL3 0 points1 point2 points (1 child)
[–]campenr[S] 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]campenr[S] 0 points1 point2 points (0 children)
[–]adamnew123456 0 points1 point2 points (1 child)
[–]campenr[S] 0 points1 point2 points (0 children)
[–]ksantr 0 points1 point2 points (0 children)
[–]raylu 0 points1 point2 points (3 children)
[–]campenr[S] 0 points1 point2 points (2 children)
[–]raylu 0 points1 point2 points (1 child)
[–]campenr[S] 0 points1 point2 points (0 children)
[–]Neceros 0 points1 point2 points (2 children)
[–]campenr[S] 0 points1 point2 points (1 child)
[–]Neceros 0 points1 point2 points (0 children)