docuum icon indicating copy to clipboard operation
docuum copied to clipboard

Windows percentage based threshold

Open gryphon-ops opened this issue 5 months ago • 1 comments

Description Add the ability to use a percentage based threshold on windows like already exists for linux docuum --threshold '50%'

Additional considerations https://github.com/stepchowfun/docuum/pull/216#pullrequestreview-922165098 - mentioned it could be more difficult to setup on windows, as docker can be run in a vm on windows, but typically it's just run as a service. Running those commands in that comment:

PS C:\Users\me>  docker info --format '{{.DockerRootDir}}'
C:\docker\data
PS C:\Users\me> dir C:\docker\data
<Some dir output>

The directory exists, so the disk size method could work for instances where docker is a service, and not running in a vm. For validaton we could add a check to see if the disk checks works or if docker is running in a VM, and then throw a helpful error, otherwise use similar logic to the linux method

gryphon-ops avatar Jul 22 '25 14:07 gryphon-ops

That sounds reasonable to me! I'd be happy to review a PR if anyone can contribute it.

stepchowfun avatar Jul 22 '25 16:07 stepchowfun