These do not work for remote files.
To get remote files, in theory, set the amount of space you have. Calculate all the files you have then subtract from the total amount. This should work, I hope it does I need this function for remote files... well rweally want *huff 🙁