MCPcopy Create free account
hub / github.com/Rezonality/zep / SetFilePath

Method SetFilePath

src/buffer.cpp:658–671  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

656}
657
658void ZepBuffer::SetFilePath(const ZepPath& path)
659{
660 auto testPath = path;
661 if (GetEditor().GetFileSystem().Exists(testPath))
662 {
663 testPath = GetEditor().GetFileSystem().Canonical(testPath);
664 }
665
666 if (!GetEditor().GetFileSystem().Equivalent(testPath, m_filePath))
667 {
668 m_filePath = testPath;
669 }
670 GetEditor().SetBufferSyntax(*this);
671}
672
673// Remember that we updated the buffer and dirty the state
674// Clients can use these values to figure out update times and dirty state

Callers 1

HandleExCommandMethod · 0.80

Calls 4

CanonicalMethod · 0.80
EquivalentMethod · 0.80
SetBufferSyntaxMethod · 0.80
ExistsMethod · 0.45

Tested by

no test coverage detected