[#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 for allocation in the file system where the file with the specified `descriptor` resides, or a negative value if an error occurs&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 for allocation in the file system where the file or directory with the specified `path` resides, or a negative value if an error occurs&period; The parameterized `STRING&lowbar;TYPE` must be one of `bsl&colon;&colon;string`, `std&colon;&colon;string`, `std&colon;&colon;pmr&colon;&colon;string` (if supported), `bsl&colon;&colon;string&lowbar;view`, or `bslstl&colon;&colon;StringRef`&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;_]#

Same as the overload taking `const char &ast;`&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;_]#


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