[#BloombergLP-bdls-FilesystemUtil-getAvailableSpace-01]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/FilesystemUtil.adoc[FilesystemUtil]::getAvailableSpace
:relfileprefix: ../../../
:mrdocs:

`getAvailableSpace` overloads

== Synopses

Declared in `&lt;bdls&lowbar;filesystemutil&period;h&gt;`

Return the number of bytes available on the file system of `descriptor`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdls/FilesystemUtil/Offset.adoc[Offset]
xref:BloombergLP/bdls/FilesystemUtil/getAvailableSpace-08.adoc[getAvailableSpace](xref:BloombergLP/bdls/FilesystemUtil/FileDescriptor.adoc[FileDescriptor] descriptor);
----

[.small]#xref:BloombergLP/bdls/FilesystemUtil/getAvailableSpace-08.adoc[_» more&period;&period;&period;_]#

Return the number of bytes available on the file system of `path`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdls/FilesystemUtil/Offset.adoc[Offset]
xref:BloombergLP/bdls/FilesystemUtil/getAvailableSpace-0a.adoc[getAvailableSpace](char const* path);
----

[.small]#xref:BloombergLP/bdls/FilesystemUtil/getAvailableSpace-0a.adoc[_» more&period;&period;&period;_]#

Return the number of bytes available on the file system of `path`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class STRING&lowbar;TYPE&gt;
static
xref:BloombergLP/bdls/FilesystemUtil/Offset.adoc[FilesystemUtil::Offset]
xref:BloombergLP/bdls/FilesystemUtil/getAvailableSpace-0d.adoc[getAvailableSpace](STRING&lowbar;TYPE const& path);
----

[.small]#xref:BloombergLP/bdls/FilesystemUtil/getAvailableSpace-0d.adoc[_» more&period;&period;&period;_]#

== Return Value

the number of available bytes, or a negative value on error

== Parameters

[cols="1,4"]
|===
| Name| Description
| *descriptor*
| file descriptor whose volume&apos;s free space is returned
| *path*
| filesystem path whose volume&apos;s free space is returned
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
