Compiles but lotsa problems.

This commit is contained in:
Brad Arant committed 2022-07-30 17:46:35 -07:00
1 parent 09c6163a74
commit bb1c2cf944
9 files changed
+50 -49

No files matched your search

+2 -4
View File
@@ -7,7 +7,6 @@ namespace mail {
MailFileSystem::MailFileSystem(coreutils::ZString &mailPath) : mailPath(mailPath) {}
bool MailFileSystem::ifMailBoxExists(coreutils::ZString &mailbox) {
std::cout << "{" << mailbox << "}" << std::endl;
if(stat(getMailBoxPath(mailbox).c_str(), &statbuf) != -1)
if(S_ISDIR(statbuf.st_mode))
return true;
@@ -23,9 +22,8 @@ namespace mail {
coreutils::MString MailFileSystem::getMailBoxPath(coreutils::ZString &mailbox) {
mailbox.split("@", 1);
std::cout << mailbox[0] << "-" << mailbox[1] << std::endl;
coreutils::MString path(mailPath + "/" + mailbox[1] + "/" + mailbox[0]);
std::cout << "{" << path << "}" << std::endl;
coreutils::MString path;
path << mailPath << "/" << mailbox[1] << "/" << mailbox[0];
return path;
}