I'm new in programming and started making simple scripts to automate some of the tasks here in our office. So basically we have a separate computer in our office connected through the office network where we store backups of our files every day after business hours. I wanted to create a python script that can automate the backing up of files where it first checks the space on the computer first before proceeding to back up our files.
Unfortunately based on the forum, the os.statvfs does not work in windows platform. The wmi module works but only the local disks mounted to the computer were detected.
import os
disk = os.statvfs("/")
s = os.statvfs("\\\\LVD001-Backup\\")
AttributeError: module 'os' has no attribute 'statvfs'
LVD001-Backup is the name of the PC in the network where we store our office files.