You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: branches/tswast-patch-1/google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/CloudStorageFileSystemProvider.java
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -170,14 +170,15 @@ public CloudStorageFileSystem getFileSystem(URI uri) {
170
170
}
171
171
172
172
/**
173
-
* Returns Cloud Storage file system, provided a URI with no path, e.g. {@code gs://bucket}.
173
+
* Returns Cloud Storage file system, provided a URI, e.g. {@code gs://bucket}.
174
+
* The URI can include a path component (that will be ignored).
174
175
*
175
176
* @param uri bucket and current working directory, e.g. {@code gs://bucket}
176
177
* @param env map of configuration options, whose keys correspond to the method names of
177
178
* {@link CloudStorageConfiguration.Builder}. However you are not allowed to set the working
178
179
* directory, as that should be provided in the {@code uri}
179
-
* @throws IllegalArgumentException if {@code uri} specifies a user, query, fragment, or scheme is
180
-
* not {@value CloudStorageFileSystem#URI_SCHEME}
180
+
* @throws IllegalArgumentException if {@code uri} specifies a port, user, query, or fragment, or
181
+
* if scheme is not {@value CloudStorageFileSystem#URI_SCHEME}
Copy file name to clipboardExpand all lines: branches/tswast-patch-1/google-cloud-contrib/google-cloud-nio/src/test/java/com/google/cloud/storage/contrib/nio/CloudStorageFileSystemProviderTest.java
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,9 @@
54
54
importjava.nio.file.OpenOption;
55
55
importjava.nio.file.Path;
56
56
importjava.nio.file.Paths;
57
+
importjava.util.HashMap;
57
58
importjava.util.List;
59
+
importjava.util.Map;
58
60
59
61
/**
60
62
* Unit tests for {@link CloudStorageFileSystemProvider}.
@@ -644,6 +646,12 @@ public void testProviderEquals() {
0 commit comments