diff --git a/bin/.gitignore b/bin/.gitignore index 4003d99..3f9dc07 100644 --- a/bin/.gitignore +++ b/bin/.gitignore @@ -1 +1,2 @@ /cloudControllerInstances/ +/application/ diff --git a/bin/application/CloudController$1.class b/bin/application/CloudController$1.class index 96fd9eb..5a40f24 100644 Binary files a/bin/application/CloudController$1.class and b/bin/application/CloudController$1.class differ diff --git a/bin/application/CloudController$2.class b/bin/application/CloudController$2.class index 60b049d..e8cb19d 100644 Binary files a/bin/application/CloudController$2.class and b/bin/application/CloudController$2.class differ diff --git a/bin/application/CloudController.class b/bin/application/CloudController.class index eed91ee..49ef522 100644 Binary files a/bin/application/CloudController.class and b/bin/application/CloudController.class differ diff --git a/bin/cloudControllerInstances/GoogleDriveController.class b/bin/cloudControllerInstances/GoogleDriveController.class index ed778b4..37867ae 100644 Binary files a/bin/cloudControllerInstances/GoogleDriveController.class and b/bin/cloudControllerInstances/GoogleDriveController.class differ diff --git a/src/application/CloudController.java b/src/application/CloudController.java index 2891616..40871d0 100644 --- a/src/application/CloudController.java +++ b/src/application/CloudController.java @@ -45,6 +45,7 @@ public class CloudController { void stratupCheck(String cloudService, String cemuDirectory) { if(cloudService == "GoogleDrive") { + System.out.println("starting startup check google drive..."); try { if (!googleDriveController.checkFolder()) { googleDriveController.creatFolder(); diff --git a/src/cloudControllerInstances/GoogleDriveController.java b/src/cloudControllerInstances/GoogleDriveController.java index 09a688b..25af9a7 100644 --- a/src/cloudControllerInstances/GoogleDriveController.java +++ b/src/cloudControllerInstances/GoogleDriveController.java @@ -177,6 +177,7 @@ public class GoogleDriveController { // upload file to cloud which don't exist in the cloud for (int j = 0; j < localSavegames.size(); j++) { if (!cloudSavegamesName.contains(localSavegamesName.get(j))) { + System.out.print("file doesn't exist in the cloud, "); uploadFile(localSavegames.get(j)); } } @@ -245,7 +246,7 @@ public class GoogleDriveController { //upload a file to the cloud from the local savegames folder public void uploadFile(java.io.File uploadFile) throws IOException{ - System.out.println("uploading ..."); + System.out.println("uploading " + uploadFile.getName() + "..."); File fileMetadata = new File(); fileMetadata.setName(uploadFile.getParentFile().getName()+"_"+uploadFile.getName()); fileMetadata.setParents(Collections.singletonList(folderID)); @@ -296,13 +297,13 @@ public class GoogleDriveController { public void uploadAllFiles() { new Thread() { public void run() { - try { + try { getLocalSavegames(); for (int i = 0; i < localSavegames.size(); i++) { - uploadFile(localSavegames.get(i)); - } + uploadFile(localSavegames.get(i)); + } } catch (IOException e) { - // Auto-generated catch block + //Auto-generated catch block e.printStackTrace(); } }