diff --git a/src/installer/kiwix-install.cpp b/src/installer/kiwix-install.cpp index 56e19a8..ce2bd22 100644 --- a/src/installer/kiwix-install.cpp +++ b/src/installer/kiwix-install.cpp @@ -100,10 +100,26 @@ int main(int argc, char **argv) { /* Make the action */ if (action == ADDCONTENT) { + + /* Check if the content path exists and is readable */ if (!fileExists(contentPath)) { cerr << "The content path '" << contentPath << "' does not exist or is not readable." << endl; exit(1); } + + /* Check if this is a ZIM file */ + + /* Check if kiwixPath/kiwix/kiwix.exe exists */ + + /* Check if the directory "data" structure exists */ + + /* Copy the file to the data/content directory */ + + /* Check if the library.xml exists */ + + /* Add the file to the library.xml */ + + /* Index the file if necessary */ } exit(0);