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

Method FileData

libs/misc/ImFileDialog.cpp:330–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

statClass · 0.70

Tested by

no test coverage detected