return true if 'path' exists and it is a directory, false otherwise */
| 30 | |
| 31 | /* return true if 'path' exists and it is a directory, false otherwise */ |
| 32 | static bool is_dir(const char *path) |
| 33 | { |
| 34 | struct stat st; |
| 35 | |
| 36 | if (stat(path, &st)) |
| 37 | return false; |
| 38 | |
| 39 | return S_ISDIR(st.st_mode); |
| 40 | } |
| 41 | |
| 42 | /* return true if the given two files are the same, false otherwise */ |
| 43 | static bool is_same(const char *file1, const char *file2) |
no test coverage detected