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

Method dirPath

src/Base/FileInfo.cpp:211–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211std::string FileInfo::dirPath() const
212{
213 std::size_t last_pos {};
214 std::string retval;
215 last_pos = FileName.find_last_of('/');
216 if (last_pos != std::string::npos) {
217 retval = FileName.substr(0, last_pos);
218 }
219 else {
220 retval = pathToString(fs::current_path());
221 }
222 return retval;
223}
224
225std::string FileInfo::fileNamePure() const
226{

Callers 15

processFilesMethod · 0.80
onChangedMethod · 0.80
reloadFileMethod · 0.80
applyStandardMethod · 0.80
applyTimeStampMethod · 0.80
setValueMethod · 0.80
CopyMethod · 0.80
PasteMethod · 0.80
frdToVTKMethod · 0.80
RestoreDocFileMethod · 0.80
readPVDMethod · 0.80
throwIfNoPermissionMethod · 0.80

Calls 1

substrMethod · 0.80

Tested by

no test coverage detected