MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / isFile

Method isFile

src/Base/FileInfo.cpp:398–407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

396}
397
398bool FileInfo::isFile() const
399{
400 fs::path path = stringToPath(FileName);
401 if (fs::exists(path)) {
402 return fs::is_regular_file(path);
403 }
404
405 // TODO: Check for valid file name
406 return true;
407}
408
409bool FileInfo::isDir() const
410{

Callers 15

sLoadFileMethod · 0.80
applyTimeStampMethod · 0.80
loadImageFromUrlMethod · 0.80
getIconMethod · 0.80
loadUrlsMethod · 0.80
sLoadFileMethod · 0.80
setWorkingDirectoryMethod · 0.80
canInsertFromMimeDataMethod · 0.80
insertFromMimeDataMethod · 0.80
splashImageMethod · 0.80
verifyFileMethod · 0.80
aboutImageMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected