Skip to main content
IVent.1
Senior
May 14, 2025
Question

free disk and filex

  • May 14, 2025
  • 2 replies
  • 456 views

Hallo,

does exist, in FileX, a function that returns the free available space not yet utilized?

Thank you.

2 replies

mbarg.1
Senior III
May 14, 2025

 

No

MFARH.1
ST Employee
August 25, 2025

Hello @IVent.1 ,

Yes, FileX provides a function to retrieve the free available space on a storage volume. The API function to use is:

fx_media_space_available(FX_MEDIA *media_ptr, ULONG *available_bytes_ptr)

  •        media_ptr: pointer to the initialized media control block.
  • available_bytes: pointer to a variable where the amount of free space in bytes will be stored.

 

This function returns the amount of free space in bytes currently available on the specified media.

Regards,

Maher