HoneyMoose
  • 首页
  • Java
  • Jersey
  • Jira
  • Confluence
  • U.S.
    • USRealEstate
    • USVisaTrack
    • H1B
  • 项目和网站
    • CWIKI.US
    • OSSEZ 社区
    • WIKI.OSSEZ.COM
    • BUG.OSSEZ.COM
    • RSS.OSSEZ.COM
BLOG.OSSEZ.COM
A responsive blog theme focused om user reading experience
  1. Home
  2. Computer Science
  3. This article

显示源代码及其子目录中的文件结构

2021年02月03日 560Browse 0Like 0Comments

有时候,我们希望在论坛或者 MD 文件中展示下文件夹的目录结构。

在 windows 中,我们可以使用 tree 这个命令。

 

tree-01

 

在上面的命令中,我们可以查看当前目录,以及当前目录的所有子目录。

连同文件显示

如果你还想显示目录中的文件的话,你可以使用参数 /f

需要执行的命令为: tree /f

 

tree-02

 

添加上面的参数后可以显示文件的内容。

C:.
├───main
│   ├───java
│   │   └───com
│   │       └───ossez
│   │           └───edtestbank
│   │               └───service
│   │                   ├───configuration
│   │                   ├───controller
│   │                   └───filter
│   └───resources
└───test
    ├───java
    │   └───com
    │       └───ossez
    │           └───edtestbank
    │               └───service
    │                   └───test
    │                       └───utilities
    └───resources
        └───data

在完成上面的输出后,你可以直接拷贝粘贴到文本文件中。

 

https://www.ossez.com/t/topic/13246

Tags: None
Last updated:2021年02月03日

Kratos

stay absorbed stay excellent

Like
< Previous
Next >

Comments

Cancel reply

Newest Hotspots Random
Newest Hotspots Random
IBM Semeru Windows 下的安装 JDK 17 Okhttp 的 retrofit2 运行警告信息异常 应该升级 JDK 到 17 了吗 OpenAI-J 如何进行测试 微信 API 的发送客服消息返回对象不正确 PHP Windows 下 XAMPP 的 xdebug 配置
ChatGPT 嵌入微信公众号中的访问关于 USRealEstate 公众号的重要更新PHP 的 json_encode 异常Window 的 PHP XAMPP 安装 mongodb 的扩展PHP Windows 下 XAMPP 的 xdebug 配置微信 API 的发送客服消息返回对象不正确
Protocol Buffers 简介 如何在 Windows 环境下配置 PHP 开发运行环境 有关 Java 9 的 String Confluence 6 配置 HTTP 超时设置 中文互联网的产出在渐渐枯萎吗 MariaDB CentOS 安装的时候如何确定 Repo 地址
Categories
  • Algorithm(算法)
  • AMQP
  • Angular
  • CI
  • Compile And CI
  • Computer Science
  • Confluence
  • DataBase
  • Gradle
  • H1B
  • Hibernate
  • IDE
  • Java
  • Jersey
  • Jira
  • MariaDB
  • PrestaShop
  • Spring
  • Spring Batch
  • U.S.
  • USRealEstate
  • USVisaTrack
  • 我的小厨

COPYRIGHT © 2020 HoneyMoose. ALL RIGHTS RESERVED.

THEME CWIKIUS.CN MADE BY VTROIS