在mac系統(tǒng)中可以用tree這個(gè)工具來生文件樹际长,如
.
├── 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.層級限定:tree -L n(深度)
3.設(shè)置忽略條件:tree -I “patter”(忽略對象)
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