Mac 系統(tǒng)輸出文件tree結(jié)構(gòu)表

在mac系統(tǒng)中可以用tree這個(gè)工具來(lái)生文件樹,如

.
├── build
│   ├── flutter_assets
│   │   ├── fonts
│   │   └── packages
│   ├── ios
│   │   ├── Debug-iphonesimulator
│   │   └── iphonesimulator
│   └── kotlin-build
├── ios
│   ├── Flutter
│   │   ├── App.framework
│   │   ├── Flutter.framework
│   │   └── flutter_assets
│   ├── Frameworks
│   ├── Runner
│   │   ├── Assets.xcassets
│   │   └── Base.lproj
│   ├── Runner.xcodeproj
│   │   ├── project.xcworkspace
│   │   └── xcshareddata
│   └── Runner.xcworkspace
│       └── xcshareddata
├── lib
└── test

如何安裝tree工具:

mac下使用brew install tree命令

如何使用tree

1.只顯示文件夾:tree -d
2.層級(jí)限定:tree -L n(深度)
3.設(shè)置忽略條件:tree -I “patter”(忽略對(duì)象)
4.輸出為文件:tree > tree.md

實(shí)例:

使用命令:tree -L 3 -I "build" (限制為最多3層深度,忽略build文件夾)

.
├── README.md
├── android
│   ├── android.iml
│   ├── app
│   │   ├── build.gradle
│   │   └── src
│   ├── build.gradle
│   ├── gradle
│   │   └── wrapper
│   ├── gradle.properties
│   ├── gradlew
│   ├── gradlew.bat
│   ├── local.properties
│   └── settings.gradle
├── hiotaku.iml
├── hiotaku_android.iml
├── ios
│   ├── Flutter
│   │   ├── App.framework
│   │   ├── AppFrameworkInfo.plist
│   │   ├── Debug.xcconfig
│   │   ├── Flutter.framework
│   │   ├── Generated.xcconfig
│   │   ├── Release.xcconfig
│   │   └── flutter_assets
│   ├── Frameworks
│   ├── Runner
│   │   ├── AppDelegate.swift
│   │   ├── Assets.xcassets
│   │   ├── Base.lproj
│   │   ├── GeneratedPluginRegistrant.h
│   │   ├── GeneratedPluginRegistrant.m
│   │   ├── Info.plist
│   │   └── Runner-Bridging-Header.h
│   ├── Runner.xcodeproj
│   │   ├── project.pbxproj
│   │   ├── project.xcworkspace
│   │   └── xcshareddata
│   ├── Runner.xcworkspace
│   │   ├── contents.xcworkspacedata
│   │   └── xcshareddata
│   └── ServiceDefinitions.json
├── lib
│   └── main.dart
├── pubspec.lock
├── pubspec.yaml
├── test
│   └── widget_test.dart
└── tree.md
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容