check if file is trashed, do not load trashed files, fixes #165
This commit is contained in:
@@ -312,6 +312,8 @@ public class GoogleDriveFileStorage extends JavaFileStorageBase {
|
||||
String driveId = path.getGDriveId();
|
||||
logDebug("id"+driveId);
|
||||
File file = driveService.files().get(driveId).execute();
|
||||
if (file.getLabels().getTrashed())
|
||||
throw new FileNotFoundException(path.getDisplayName() + " is trashed!");
|
||||
logDebug("...done.");
|
||||
return file;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user