Delete files action doesn't delete gs:// files
@@ -32,6 +32,7 @@ import java.io.InputStream;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.List;
+import java.util.Objects;
public class GoogleStorageFileObject extends AbstractFileObject<GoogleStorageFileSystem> {
@@ -308,4 +309,19 @@ public class GoogleStorageFileObject extends AbstractFileObject<GoogleStorageFil
return name;
}
}
+
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ GoogleStorageFileObject that = (GoogleStorageFileObject) o;
+
+ return Objects.equals(getName().getPath(), that.getName().getPath());
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(getName().getPath());
+ }
}
