Skip to main content
IVent.1
Senior
May 14, 2025 9:19 AM UTC
Question

free disk and filex

Hallo,

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

Thank you.

This topic has been closed for replies.

2 replies

mbarg.1
Senior III
May 14, 2025 3:01 PM UTC

 

No

MFARH.1
ST Employee
Aug 25, 2025 10:56 AM UTC

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