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

Method getUniqueFileName

src/App/PropertyFile.cpp:89–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89std::string PropertyFileIncluded::getUniqueFileName(const std::string& path,
90 const std::string& filename) const
91{
92 Base::Uuid uuid;
93 Base::FileInfo fi(path + "/" + filename);
94 while (fi.exists()) {
95 fi.setFile(path + "/" + filename + "." + uuid.getValue());
96 }
97
98 return fi.filePath();
99}
100
101std::string PropertyFileIncluded::getExchangeTempFile() const
102{

Callers

nothing calls this directly

Calls 4

existsMethod · 0.45
setFileMethod · 0.45
getValueMethod · 0.45
filePathMethod · 0.45

Tested by

no test coverage detected