MCPcopy Create free account
hub / github.com/Exiv2/exiv2 / stat

Method stat

src/basicio.cpp:173–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171} // FileIo::Impl::switchMode
172
173int FileIo::Impl::stat(StructStat& buf) const {
174 struct stat st;
175 auto ret = ::stat(path_.c_str(), &st);
176 if (ret == 0) {
177 buf.st_size = st.st_size;
178 buf.st_mode = st.st_mode;
179 }
180 return ret;
181} // FileIo::Impl::stat
182
183FileIo::FileIo(const std::string& path) : p_(std::make_unique<Impl>(path)) {
184}

Callers 2

transferMethod · 0.80
sizeMethod · 0.80

Calls 2

c_strMethod · 0.80
statClass · 0.70

Tested by

no test coverage detected