Zdir Update: A Powerful and Practical Directory Listing Tool

zdirphp directory listingmarkdown previewfile managervideo player
Published·Modified·

Zdir is a directory listing program developed using PHP. The original intention behind developing Zdir was to create a self-hosted frontend library and software library, but since existing directory listing programs on the internet were unsatisfactory, Zdir was born. As introduced in the article Zdir: A Practical Directory Listing Program, Zdir's basic functions have been covered. Through continuous feedback and improvements from users, Zdir has become more practical and user-friendly.

Zdir Interface

Zdir Features

  • Directory browsing
  • Markdown preview
  • One-click copy for CSS/JavaScript (including easter eggs)
  • File hash generation
  • Image preview
  • Video playback (supports .mp4 and .m3u8 formats)
  • Text viewer (supports .txt, .sh, .py, .go, .c, .cpp formats)
  • File indexing
  • QR code generation
  • File deletion
  • Chinese language support (tested only on Linux)

Detailed Explanation of Some Features

Zdir now supports video playback. When the file extension is .mp4 or .m3u8, a play button will appear.

Video Player Interface

Video Player Controls

The text viewer is a recently added feature. Currently, it supports viewing text formats including .txt, .sh, .py, .go, .c, and .cpp (users are encouraged to provide feedback for additional formats). It also supports code syntax highlighting. (Click the image below to enlarge)

Text Viewer Demo

The Zdir file indexing feature helps you quickly find the files you need. Simply press Ctrl + F. (Click the image below to enlarge)

Search Function Demo

Zdir offers many other practical features, such as image preview, Markdown viewing, and file deletion, which are not listed here. You can visit the xiaoz software library to experience them: http://soft.xiaoz.org/

Other Notes

We welcome continued feedback to help improve Zdir. Although Zdir is ready to use out of the box, it is still recommended to refer to the help documentation during deployment, as it will be very helpful during use.