public class ObsFSFolder extends PutObjectResult
Modifier and Type | Field and Description |
---|---|
protected ObsClient |
innerClient |
Constructor and Description |
---|
ObsFSFolder(String bucketName,
String objectKey,
String etag,
String versionId,
StorageClassEnum storageClass,
String objectUrl) |
Modifier and Type | Method and Description |
---|---|
ObsFSAttribute |
attribute()
获取文件夹的属性
|
protected void |
checkInternalClient() |
TaskProgressStatus |
dropFolder()
删除文件夹
|
RenameResult |
rename(String newName)
重命名文件夹
|
protected void |
setInnerClient(ObsClient innerClient) |
getBucketName, getEtag, getObjectKey, getObjectStorageClass, getObjectUrl, getVersionId, toString
getRequestId, getResponseHeaders, getStatusCode
protected ObsClient innerClient
protected void setInnerClient(ObsClient innerClient)
public ObsFSAttribute attribute() throws ObsException
ObsException
- OBS SDK自定义异常,当调用接口失败、访问OBS失败时抛出该异常public RenameResult rename(String newName) throws ObsException
newName
- 新的文件夹名ObsException
- OBS SDK自定义异常,当调用接口失败、访问OBS失败时抛出该异常public TaskProgressStatus dropFolder() throws ObsException
ObsException
- OBS SDK自定义异常,当调用接口失败、访问OBS失败时抛出该异常protected void checkInternalClient()
Copyright © 2021. All rights reserved.