still not right. works for basic stuff, fails for large hierarchies.
[feisty_meow.git] / octopi / library / tentacles / recursive_file_copy.cpp
index 073ddb36851aad94335b2c01c4b4c084c10c8057..baf40fe75afcd3731996a5d4d4421a839230d848 100644 (file)
@@ -29,6 +29,7 @@
 #include <octopus/octopus.h>
 #include <structures/static_memory_gremlin.h>
 #include <textual/string_manipulation.h>
+#include <timely/time_control.h>
 
 using namespace application;
 using namespace basis;
@@ -36,6 +37,7 @@ using namespace filesystem;
 using namespace loggers;
 using namespace structures;
 using namespace textual;
+using namespace timely;
 
 namespace octopi {
 
@@ -171,10 +173,6 @@ outcome recursive_file_copy::copy_hierarchy(int transfer_mode,
       break;
     }
 
-//    if (!reply->_packed_data.length()) {
-//      RETURN_ERROR_RFC("file transfer had no packed data", GARBAGE);
-//    }
-
     byte_array copy = reply->_packed_data;
     while (copy.length()) {
       file_time empty;
@@ -188,7 +186,6 @@ outcome recursive_file_copy::copy_hierarchy(int transfer_mode,
 
 //hmmm: this needs better formatting, and should not repeat the same file name even
 //      if it's in multiple chunks.
-//hmmm: if logging, then...
       BASE_LOG(head.readable_text_form());
     }
     if (copy.length())