Last time I checked, the DirectoryInfo class was constructed with a 'path' - eg
DirectoryInfo directoryInfo1 = new DirectoryInfo(@"C:\");
so Im not quite sure what you are trying to achieve with your
DirectoryInfo directoryInfo1 = new DirectoryInfo(Module1.kb.project);