MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / disk_space

Method disk_space

libraries/AP_Logger/AP_Logger_File.cpp:217–220  ·  view source on GitHub ↗

returns the total amount of disk space (in use + available) in _log_directory (in bytes). returns -1 on error

Source from the content-addressed store, hash-verified

215// _log_directory (in bytes).
216// returns -1 on error
217int64_t AP_Logger_File::disk_space()
218{
219 return AP::FS().disk_space(_log_directory);
220}
221
222/*
223 convert a dirent to a log number

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected