Zdir 4.0.2 Update: Adds File Creation and Text Editing Features
Zdir is a versatile private storage program developed using Golang and Vue3. It integrates file indexing, online preview, and sharing functions, supports WebDAV, and will soon support offline downloads. It is ideal for installation on NAS devices or large-capacity VPS, making it a perfect choice for individuals, studios, and small teams to share files.
- Official Website: https://www.zdir.pro/zh/
- Purchase Subscription: https://shop.xiuping.net/zdir/index (Early bird special price 69 yuan for lifetime subscription, price will increase on July 1, 2024)
- Demo: https://soft.xiaoz.org/#/

Zdir 4.0.2 Update Details
- Support for creating files
- Support for text editing
- New: File descriptions
- Backend route added
/favicon.icofor better website icon support - Fixed a bug where switching from private to public mode was impossible after logging out in private mode
- When the list is a folder, capacity is no longer displayed; instead, it shows
- - Fixed an issue reading
README.mdin private mode - Fixed an issue where the clear button on the login page was unresponsive
- Optimized the backend method for obtaining domain protocols
- MxPlayer Pro icon now reads from the backend
- Routes compatible with Zdir 3 redirect to version 4
- Backend Linux service registration now includes OS detection, requiring registration only for CentOS/Debian/Ubuntu
- Optimized file creation prompts
- Optimized some styles
Detailed Update Explanation
Create Files
The functions for creating files and folders are combined. By default, a folder is created. If the name ends with .js/.php/.py/.go/.sh/.css/.sql/.txt/.log/.md/.json/.xml/.html/.yml/.yaml, Zdir will treat it as a file.
If the filename has no suffix, a folder is created by default.

If the filename contains one of the specified suffixes, a file will be created.

Text Editing
Currently, Zdir supports editing most common text formats. You can edit text files with .js/.php/.py/.go/.sh/.css/.sql/.txt/.log/.md/.json/.xml/.html/.yml/.yaml extensions. There are two ways to trigger the editing operation.
The first method is to right-click on files with the above suffixes when hovering the mouse over them; an edit button will appear.

When previewing a file, if it supports editing, an Edit button will also appear.

When the mouse is inside the editing box, the following shortcuts are supported to save content:
- Windows: Ctrl + S
- macOS: Command + S

File Descriptions
Starting from Zdir 4.0.2, the file description feature is supported. You can add descriptions for individual files, making it easier for users when sharing files. For example, if your file name is zdir4.tar, you only need to create a file named zdir4.tar.md in the same directory.

When you open zdir4.tar, the content inside zdir4.tar.md will be displayed automatically. Demo address: https://soft.xiaoz.org/#/zdir/docker/zdir4.tar?type=file

Upgrade
Users who have already installed Zdir 4 can refer to the help documentation at https://doc.xiaoz.top/web/#/10/59 for the upgrade process.
Users who have not yet installed Zdir can refer to the help documentation at https://doc.xiaoz.top/web/#/10/38 for installation instructions.
Conclusion
Zdir is a powerful private storage program that meets the file management needs of individuals, studios, and small teams. Developed with a combination of Golang and Vue3, Zdir not only provides basic functions such as file indexing, text editing, online preview, and sharing but also supports WebDAV to further enhance the user experience. Whether you need to manage large-capacity data on NAS devices or share files on a VPS, Zdir is an ideal choice.
For more details, visit our official website, purchase a subscription, or check the demo:
- Official Website: https://www.zdir.pro/zh/
- Purchase Subscription: https://shop.xiuping.net/zdir/index
- Demo: https://soft.xiaoz.org/#/
Thank you for your attention and support for Zdir. We look forward to your participation and feedback. If you are interested, you can also scan the QR code to join our WeChat group:
