I\'m writing a package that downloads a large amount of data. How can I check the available disk space prior to doing so? Needs to work on Mac and Windows.