MCPcopy Create free account
hub / github.com/ashkulz/NppFTP / SetDir

Method SetDir

src/FileObject.cpp:143–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143int FileObject::SetDir(bool bisDir) {
144 if (isDir() == bisDir)
145 return 0;
146
147 if (!bisDir && GetChildCount() > 0) //proven to be directory
148 return -1;
149
150 m_isDir = bisDir;
151
152 return 0;
153}
154
155bool FileObject::isLink() const {
156 return m_isLink;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected