文件树

将文件路径列表整理成树状目录结构,不会读取路径指向的文件。

输入: 文本结果: 文本

文本输入

工具选项

案例

A static website

A static website. The input is a small public learning fixture; it contains no private production data.

输入

site/index.html
site/assets/app.js
site/assets/style.css

Expected checks

Case-insensitive
Contains "index.html"
Contains "app.js"
Contains "style.css"
文件路径分隔符
/
分隔符
Line feed
A Python package

A Python package. The input is a small public learning fixture; it contains no private production data.

输入

pkg/__init__.py
pkg/parse.py
tests/test_parse.py

Expected checks

Case-insensitive
Contains "__init__.py"
Contains "parse.py"
Contains "test_parse.py"
文件路径分隔符
/
分隔符
Line feed
Release artefacts

Release artefacts. The input is a small public learning fixture; it contains no private production data.

输入

dist/app-linux.zip
dist/app-macos.zip
checksums/SHA256SUMS

Expected checks

Case-insensitive
Contains "app-linux.zip"
Contains "app-macos.zip"
Contains "SHA256SUMS"
文件路径分隔符
/
分隔符
Line feed
Monthly receipts

Monthly receipts. The input is a small public learning fixture; it contains no private production data.

输入

2025/01/a.pdf
2025/02/b.pdf
2025/02/c.pdf

Expected checks

Case-insensitive
Contains "a.pdf"
Contains "b.pdf"
Contains "c.pdf"
文件路径分隔符
/
分隔符
Line feed
A small documentation tree

A small documentation tree. The input is a small public learning fixture; it contains no private production data.

输入

docs/start.md
docs/api/auth.md
docs/api/errors.md

Expected checks

Case-insensitive
Contains "start.md"
Contains "auth.md"
Contains "errors.md"
文件路径分隔符
/
分隔符
Line feed
basic example

输入

/test_dir1/test_file1.txt
/test_dir1/test_file2.txt
/test_dir2/test_file1.txt

Expected answer

test_dir1
|---test_file1.txt
|---test_file2.txt
test_dir2
|---test_file1.txt
文件路径分隔符
/
分隔符
Line feed

参数

参数默认值输入与选项
文件路径分隔符"/"支持 \n、\r 和 \t 等转义序列
分隔符行 feed行 feed, CRLF, 空格, 逗号, 分号, 冒号, Nothing (separate 字符)

相关工具

实用工具

操作参考

查看原始技术文档 (English)