Solution : https://service.sap.com/sap/support/notes/492173 (SAP Service marketplace login required)
Key words : 
prerequisites disk freespace returned 0, install current support packages, terms frontend services, solution simply call, free space, calling interface, cl_gui_frontend_services=>get_drive_free_space_megabyte, directorie', automation
Related Notes : 
       
| 96885 | Downloading front end patches |