MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / dirNameValid

Method dirNameValid

src/openms_gui/source/VISUAL/OutputDirectory.cpp:71–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69
70
71 bool OutputDirectory::dirNameValid() const
72 {
73 if (!QFileInfo(getDirectory()).isDir())
74 {
75 return false;
76 }
77 QString file_name = getDirectory();
78 if (!file_name.endsWith(QDir::separator()))
79 {
80 file_name += QDir::separator();
81 }
82 file_name += "test_file";
83 return File::writable(file_name);
84 }
85
86
87} // namespace

Callers 3

checkValidity_Method · 0.80
getCurrentOutDir_Method · 0.80
getCurrentOutDir_Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected