Деревья (tree) директорий с помощью PowerShell (или иной консоли)


17:20, 21/03/2018

Команда tree

tree
tree > tree.txt

Результат:

RootDir
├───App
├───css
├───helpers
├───myClasses
└───vendor
    ├───bin
    ├───composer
    └───raveren
    └───kint
    ├───decorators
    ├───examples
    ├───inc
    ├───parsers
    │   ├───custom
    │   └───objects
    └───view
    ├───compiled
    └───themes

Команда tree /A

tree /A
tree /A > tree_a.txt

Результат:

RootDir
+---App
+---css
+---helpers
+---myClasses
\---vendor
    +---bin
    +---composer
    \---raveren
    \---kint
    +---decorators
    +---examples
    +---inc
    +---parsers
    |   +---custom
    |   \---objects
    \---view
    +---compiled
    \---themes

Команда tree /A /F

tree /A /F
tree /A /F > tree.txt

Результат:

RootDir
|   .htaccess
|   composer.json
|   composer.lock
|   index.php
|   
+---App
|       AppClass.php
|       
+---css
|       styles.css
|       
+---helpers
|       my_functions.php
|       
+---myClasses
|       MyClass.php
|       
\---vendor
    |   autoload.php
    |   
    +---bin
    +---composer
    |       autoload_classmap.php
    |       autoload_files.php
    |       autoload_namespaces.php
    |       autoload_psr4.php
    |       autoload_real.php
    |       autoload_static.php
    |       ClassLoader.php
    |       installed.json
    |       LICENSE
    |       
    \---raveren
    \---kint
    |   .gitignore
    |   composer.json
    |   config.default.php
    |   CONTRIBUTING.md
    |   Kint.class.php
    |   LICENCE
    |   README.md
    |   
    +---decorators
    |       plain.php
    |       rich.php
    |       
    +---examples
    |       overview.php
    |       
    +---inc
    |       kintObject.class.php
    |       kintParser.class.php
    |       kintVariableData.class.php
    |       
    +---parsers
    |   +---custom
    |   |       classmethods.php
    |   |       classstatics.php
    |   |       color.php
    |   |       fspath.php
    |   |       json.php
    |   |       microtime.php
    |   |       objectiterateable.php
    |   |       splobjectstorage.php
    |   |       timestamp.php
    |   |       xml.php
    |   |       
    |   \---objects
    |       closure.php
    |       smarty.php
    |       splfileinfo.php
    |       
    \---view
    |   base.js
    |   base.less
    |   
    +---compiled
    |       aante-light.css
    |       kint.js
    |       original.css
    |       solarized-dark.css
    |       solarized.css
    |       
    \---themes
    aante-light.less
    original.less
    solarized-dark.less
    solarized.less

Команда tree /F

tree /F
tree /F > tree.txt

Результат:

RootDir
│   .htaccess
│   composer.json
│   composer.lock
│   index.php
│   
├───App
│       AppClass.php
│       
├───css
│       styles.css
│       
├───helpers
│       my_functions.php
│       
├───myClasses
│       MyClass.php
│       
└───vendor
    │   autoload.php
    │   
    ├───bin
    ├───composer
    │       autoload_classmap.php
    │       autoload_files.php
    │       autoload_namespaces.php
    │       autoload_psr4.php
    │       autoload_real.php
    │       autoload_static.php
    │       ClassLoader.php
    │       installed.json
    │       LICENSE
    │       
    └───raveren
    └───kint
    │   .gitignore
    │   composer.json
    │   config.default.php
    │   CONTRIBUTING.md
    │   Kint.class.php
    │   LICENCE
    │   README.md
    │   
    ├───decorators
    │       plain.php
    │       rich.php
    │       
    ├───examples
    │       overview.php
    │       
    ├───inc
    │       kintObject.class.php
    │       kintParser.class.php
    │       kintVariableData.class.php
    │       
    ├───parsers
    │   ├───custom
    │   │       classmethods.php
    │   │       classstatics.php
    │   │       color.php
    │   │       fspath.php
    │   │       json.php
    │   │       microtime.php
    │   │       objectiterateable.php
    │   │       splobjectstorage.php
    │   │       timestamp.php
    │   │       xml.php
    │   │       
    │   └───objects
    │       closure.php
    │       smarty.php
    │       splfileinfo.php
    │       
    └───view
    │   base.js
    │   base.less
    │   
    ├───compiled
    │       aante-light.css
    │       kint.js
    │       original.css
    │       solarized-dark.css
    │       solarized.css
    │       
    └───themes
    aante-light.less
    original.less
    solarized-dark.less
    solarized.less


Комментарии