/hierarchy

Project allows to clone directory hierarchy from server

Primary LanguagePythonMIT LicenseMIT

hierarchy

Python application

Project allows to clone directory hierarchy from server

Requirements

At first get project:

$ git clone https://github.com/mperov/hierarchy.git
$ cd hierarchy/

The second I recommend to create special Python virtual enviroment by

$ sudo apt-get install python3-venv -y
$ python3 -m venv hierarchy
$ source hierarchy/bin/activate

Next install some Python modules - pip3 install -r requirements or python3 -m pip install -r requirements
If you don't have pip3 then you may install it how described here

Usage

  1. It is recommended to run hierarchy.py with root privileges.
  2. Detail information about options you may find below:
usage: hierarchy.py [-h] [-d /path/to/directory] [-rd N] [-s ip address or hostname] [-v]

optional arguments:
  -h, --help            show this help message and exit
  -d /path/to/directory, --dir /path/to/directory
                        path to directory. This argument is main!
  -rd N, --recursion-depth N
                        The maximal number of nested calls. By default recursion is unlimited.
  -v, --verbose         this option enables debug mode