MCPcopy Create free account
hub / github.com/chrxh/alien / FileData

Method FileData

external/ImFileDialog/ImFileDialog.cpp:332–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330 }
331
332 FileDialog::FileData::FileData(const std::filesystem::path& path) {
333 std::error_code ec;
334 Path = path;
335 IsDirectory = std::filesystem::is_directory(path, ec);
336 Size = std::filesystem::file_size(path, ec);
337
338 struct stat attr;
339 stat(reinterpret_cast<char const*>(path.u8string().c_str()), &attr);
340 DateModified = attr.st_ctime;
341
342 HasIconPreview = false;
343 IconPreview = nullptr;
344 IconPreviewData = nullptr;
345 IconPreviewHeight = 0;
346 IconPreviewWidth = 0;
347 }
348
349 FileDialog::FileDialog() {
350 m_isOpen = false;

Callers

nothing calls this directly

Calls 1

statClass · 0.70

Tested by

no test coverage detected