a little clean up
This commit is contained in:
parent
c7fe070de6
commit
e796b582fa
|
@ -1 +1,2 @@
|
||||||
/cloudControllerInstances/
|
/cloudControllerInstances/
|
||||||
|
/application/
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -45,6 +45,7 @@ public class CloudController {
|
||||||
|
|
||||||
void stratupCheck(String cloudService, String cemuDirectory) {
|
void stratupCheck(String cloudService, String cemuDirectory) {
|
||||||
if(cloudService == "GoogleDrive") {
|
if(cloudService == "GoogleDrive") {
|
||||||
|
System.out.println("starting startup check google drive...");
|
||||||
try {
|
try {
|
||||||
if (!googleDriveController.checkFolder()) {
|
if (!googleDriveController.checkFolder()) {
|
||||||
googleDriveController.creatFolder();
|
googleDriveController.creatFolder();
|
||||||
|
|
|
@ -177,6 +177,7 @@ public class GoogleDriveController {
|
||||||
// upload file to cloud which don't exist in the cloud
|
// upload file to cloud which don't exist in the cloud
|
||||||
for (int j = 0; j < localSavegames.size(); j++) {
|
for (int j = 0; j < localSavegames.size(); j++) {
|
||||||
if (!cloudSavegamesName.contains(localSavegamesName.get(j))) {
|
if (!cloudSavegamesName.contains(localSavegamesName.get(j))) {
|
||||||
|
System.out.print("file doesn't exist in the cloud, ");
|
||||||
uploadFile(localSavegames.get(j));
|
uploadFile(localSavegames.get(j));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -245,7 +246,7 @@ public class GoogleDriveController {
|
||||||
|
|
||||||
//upload a file to the cloud from the local savegames folder
|
//upload a file to the cloud from the local savegames folder
|
||||||
public void uploadFile(java.io.File uploadFile) throws IOException{
|
public void uploadFile(java.io.File uploadFile) throws IOException{
|
||||||
System.out.println("uploading ...");
|
System.out.println("uploading " + uploadFile.getName() + "...");
|
||||||
File fileMetadata = new File();
|
File fileMetadata = new File();
|
||||||
fileMetadata.setName(uploadFile.getParentFile().getName()+"_"+uploadFile.getName());
|
fileMetadata.setName(uploadFile.getParentFile().getName()+"_"+uploadFile.getName());
|
||||||
fileMetadata.setParents(Collections.singletonList(folderID));
|
fileMetadata.setParents(Collections.singletonList(folderID));
|
||||||
|
|
Loading…
Reference in New Issue