Tor  0.4.7.0-alpha-dev
Functions
freespace.c File Reference

Find the available disk space on the current volume. More...

#include "lib/fs/files.h"
#include "lib/cc/torint.h"
#include <errno.h>
#include <string.h>

Go to the source code of this file.

Functions

int64_t tor_get_avail_disk_space (const char *path)
 

Detailed Description

Find the available disk space on the current volume.

Definition in file freespace.c.

Function Documentation

◆ tor_get_avail_disk_space()

int64_t tor_get_avail_disk_space ( const char *  path)

Return the amount of free disk space we have permission to use, in bytes. Return -1 if the amount of free space can't be determined.

Definition at line 28 of file freespace.c.