Overview
| Artifact ID: | f63609b4ac4b6f9b4e631a3ac84df7d0cb12d77699f4078214ef6c01ac626b96 |
|---|---|
| Ticket: | 516d581c047786f7a51e1a574e43e8832447cc07
A tcl command to report free usable space of a partition of native file system |
| User & Date: | apnadkarni on 2025-11-27 05:21:18 |
Changes
- icomment:
Not that it's up to me, but I think these kinds of features (system information like list of drives/mounts, disk space, memory etc.) are more appropriate to be implemented as libraries or extensions, not part of core Tcl. On Windows, you can use the twapi package (get_volume_info). On Unix, tuapi might have something similar, not sure. Also to be noted, the definition of "free disk space" is a bit nebulous. If the file path passed is a link or junction, should the function return space for the link or the link target? In case of spanned volumes, should return free space on the physical drive or logical drive? Etc.
- login: "apnadkarni"
- mimetype: "text/x-markdown"