@Test public void testSpecifyPathCorrect() { OssStorageResource ossStorageResource = new OssStorageResource(this.oss, "oss: assertThat(ossStorageResource.exists()).isEqualTo(true); }
@Override public boolean exists() { try { return isBucket() ? getBucket() != null : getOSSObject() != null; } catch (Exception e) { return false; } }
OssStorageResource implements WritableResource { @Override public boolean exists() { try { return isBucket() ? getBucket() != null : getOSSObject() != null; } catch (Exception e) { return false; } } }
OssStorageResource implements WritableResource { @Override public boolean exists() { try { return isBucket() ? getBucket() != null : getOSSObject() != null; } catch (Exception e) { return false; } } OssStorageResource(OSS oss, String location,
                              ConfigurableListableBeanFactory beanFactory);  OssStorageResource(OSS oss, String location,
                              ConfigurableListableBeanFactory beanFactory, boolean autoCreateFiles); }
OssStorageResource implements WritableResource { @Override public boolean exists() { try { return isBucket() ? getBucket() != null : getOSSObject() != null; } catch (Exception e) { return false; } } OssStorageResource(OSS oss, String location,
                              ConfigurableListableBeanFactory beanFactory);  OssStorageResource(OSS oss, String location,
                              ConfigurableListableBeanFactory beanFactory, boolean autoCreateFiles); boolean isAutoCreateFiles(); @Override boolean exists(); @Override URL getURL(); @Override URI getURI(); @Override File getFile(); @Override long contentLength(); @Override long lastModified(); @Override Resource createRelative(String relativePath); @Override String getFilename(); @Override String getDescription(); @Override InputStream getInputStream(); Bucket getBucket(); boolean bucketExists(); OSSObject getOSSObject(); boolean isBucket(); Bucket createBucket(); @Override boolean isWritable(); @Override OutputStream getOutputStream(); }
OssStorageResource implements WritableResource { @Override public boolean exists() { try { return isBucket() ? getBucket() != null : getOSSObject() != null; } catch (Exception e) { return false; } } OssStorageResource(OSS oss, String location,
                              ConfigurableListableBeanFactory beanFactory);  OssStorageResource(OSS oss, String location,
                              ConfigurableListableBeanFactory beanFactory, boolean autoCreateFiles); boolean isAutoCreateFiles(); @Override boolean exists(); @Override URL getURL(); @Override URI getURI(); @Override File getFile(); @Override long contentLength(); @Override long lastModified(); @Override Resource createRelative(String relativePath); @Override String getFilename(); @Override String getDescription(); @Override InputStream getInputStream(); Bucket getBucket(); boolean bucketExists(); OSSObject getOSSObject(); boolean isBucket(); Bucket createBucket(); @Override boolean isWritable(); @Override OutputStream getOutputStream();  }