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

Method closedir

libraries/AP_Filesystem/AP_Filesystem.cpp:266–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264}
265
266int AP_Filesystem::closedir(DirHandle *dirp)
267{
268 if (!dirp) {
269 return -1;
270 }
271 const Backend &backend = backends[dirp->fs_index];
272 int ret = backend.fs.closedir(dirp->dir);
273 delete dirp;
274 return ret;
275}
276
277// return free disk space in bytes
278int64_t AP_Filesystem::disk_free(const char *path)

Callers 6

ftp_list_dirMethod · 0.45
find_oldest_logMethod · 0.45
get_num_logsMethod · 0.45
readdirMethod · 0.45
lua_dirlistFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected