V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
loopio
V2EX  ›  HTML

有没有个自动遍历目录里的文件,把文件名和路径输出到 html 中的实现?

  •  
  •   loopio · Apr 21, 2017 · 3665 views
    This topic created in 3297 days ago, the information mentioned may be changed or developed.

    自己搭建了一个网站。下载国内下载速度特别慢的 github 版本库。压缩打包然后放在 Apache 网站目录下。不想使用传统的目录显示。想有没有一个可以遍历网站目录下的文件,把路径和文件名用标签输出到 html 上。

    2 replies    2024-01-08 08:15:07 +08:00
    domty
        1
    domty  
       Apr 21, 2017
    这东西如果文件目录规模不大自己写一个就行了。

    实在不行每遍历一次把结果缓存一次。
    Ashes26
        2
    Ashes26  
       Jan 8, 2024 via Android
    caddy
    file_server browse
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   845 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 19:42 · PVG 03:42 · LAX 12:42 · JFK 15:42
    ♥ Do have faith in what you're doing.