Commits

Leah Hanson  committed 5458101

improved whitespace. inserted more comments

  • Participants
  • Parent commits cc7f567

Comments (0)

Files changed (1)

File HaikuDropbox.cpp

   if(command.Compare("RESET\n") == 0)
   {
     printf("Burn Everything. 8D\n");
+
     status_t err = stop_watching(be_app_messenger);
     if(err != B_OK) printf("stop_watching error: %s\n",strerror(err));
+
     BDirectory dir = BDirectory(local_path_string);
     rm_rf(&dir);
+
     BString str = BString("/"); //create_local_path wants a remote path 
     create_local_directory(&str);
+
     this->recursive_watch(&dir);
   }
   else if(command.Compare("FILE ",5) == 0)
     command.CopyInto(path,5,last_space - 5);
 
     path.CopyInto(dirpath,0,path.FindLast("/"));
+    //TODO find last existing dir in path
     //TODO stop watching last existing dir
     create_local_directory(&dirpath);
     //TODO start watching last pre-existing and all new dirs
     strcpy(not_const2,tmp.String());
     argv[2] = not_const2;
 
+    //TODO get path up to last folder
     //TODO stop watching last folder
     BString * b = run_python_script(argv,3);
     delete b;
     command.CopyInto(path,7,command.FindLast(" ") - 7);
 
     printf("create a folder at |%s|\n", path.String());
+    //TODO find last existing folder in path
     //TODO stop watching last existing folder in path
     create_local_directory(&path);
     //TODO start watching last existing folder and all new dirs in path
     const char * pathstr = db_to_local_filepath(path.String()).String();
     printf("Remove whatever is at |%s|\n", pathstr);
     BEntry entry = BEntry(pathstr);
+    //TODO pull containing folder path out of path
     //TODO stop watching target file and containing folder
     status_t err = entry.Remove();
     //TODO start watching containing folder again