MCPcopy Create free account
hub / github.com/cxasm/notepad-- / getSwapFilePath

Function getSwapFilePath

src/cceditor/ccnotepad.cpp:240–249  ·  view source on GitHub ↗

根据当前路径,得到交互文件的名称

Source from the content-addressed store, hash-verified

238
239//根据当前路径,得到交互文件的名称
240QString getSwapFilePath(QString filePath)
241{
242 QFileInfo fi(filePath);
243
244#ifdef _WIN32
245 return QString("%1\\.%2.swp").arg(fi.absolutePath()).arg(fi.fileName());
246#else
247 return QString("%1/.%2.swp").arg(fi.absolutePath()).arg(fi.fileName());
248#endif
249}
250
251
252

Callers 4

tabCloseMethod · 0.85
openTextFileMethod · 0.85
saveFileMethod · 0.85
saveTempFileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected