mirror of
https://github.com/yawaflua/tzeva-adom.git
synced 2025-12-08 19:39:30 +02:00
15 lines
259 B
C++
15 lines
259 B
C++
//
|
|
// Created by yawaflua on 15/11/2024.
|
|
//
|
|
|
|
#ifndef CHECK_FILE_EXISTS_H
|
|
#define CHECK_FILE_EXISTS_H
|
|
|
|
|
|
inline bool file_exists (const std::string& name) {
|
|
struct stat buffer;
|
|
return (stat (name.c_str(), &buffer) == 0);
|
|
}
|
|
|
|
#endif //CHECK_FILE_EXISTS_H
|