Upload custom_nodes/ComfyUI-Crystools/general/hdd.py with huggingface_hub
Browse files
custom_nodes/ComfyUI-Crystools/general/hdd.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import psutil
|
| 2 |
+
from ..core import logger
|
| 3 |
+
|
| 4 |
+
def getDrivesInfo():
|
| 5 |
+
hdds = []
|
| 6 |
+
logger.debug('Getting HDDs info...')
|
| 7 |
+
for partition in psutil.disk_partitions():
|
| 8 |
+
hdds.append(partition.mountpoint)
|
| 9 |
+
|
| 10 |
+
return hdds
|