sensor_api
source
Utilities
Legacy
FirmwareUpdateUtility
Util.hh
Go to the documentation of this file.
1
37
#ifndef __FUU_UTIL_H__
38
#define __FUU_UTIL_H__
39
40
#ifdef WIN32
41
#include <io.h>
42
#else
43
#include <unistd.h>
44
#endif
45
46
namespace
Util
{
47
48
49
bool
FileExists
(
const
char
* FilePath)
50
{
51
#ifdef _WIN32
52
return
(_access(FilePath, 0) == 0);
53
#else
54
return
(access(FilePath, F_OK) == 0);
55
#endif
56
}
57
58
}
59
60
#endif
/* end of include guard: __FUU_UTIL_H__ */
Util::FileExists
bool FileExists(const char *FilePath)
Definition:
Util.hh:49
Util
Definition:
Util.hh:46
multisense_lib
Author(s):
autogenerated on Thu Apr 17 2025 02:49:09