| 868 | #else // POSIX |
| 869 | |
| 870 | Status LinkStat(const PlatformFilename& path, struct stat* lst, bool* exists = nullptr) { |
| 871 | if (lstat(path.ToNative().c_str(), lst) != 0) { |
| 872 | if (exists == nullptr || (errno != ENOENT && errno != ENOTDIR && errno != ELOOP)) { |
| 873 | return IOErrorFromErrno(errno, "Cannot get information for path '", path.ToString(), |
| 874 | "'"); |
| 875 | } |
| 876 | *exists = false; |
| 877 | } else if (exists != nullptr) { |
| 878 | *exists = true; |
| 879 | } |
| 880 | return Status::OK(); |
| 881 | } |
| 882 | |
| 883 | Status DeleteDirTreeInternal(const PlatformFilename& dir_path); |
| 884 |
no test coverage detected