MCPcopy Create free account
hub / github.com/dfranx/ImFileDialog / FileData

Method FileData

ImFileDialog.cpp:334–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

statClass · 0.85

Tested by

no test coverage detected