MCPcopy Create free account
hub / github.com/apache/arrow / LinkStat

Function LinkStat

cpp/src/arrow/util/io_util.cc:870–881  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

868#else // POSIX
869
870Status 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
883Status DeleteDirTreeInternal(const PlatformFilename& dir_path);
884

Callers 2

DeleteDirTreeInternalFunction · 0.85
DeleteDirContentsFunction · 0.85

Calls 3

IOErrorFromErrnoFunction · 0.85
OKFunction · 0.50
ToStringMethod · 0.45

Tested by

no test coverage detected