public class FolderInfo extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
BUCKET_PREFIX |
static String |
FOLDER_PREFIX |
static String |
PATH |
| Constructor and Description |
|---|
FolderInfo(com.google.storage.control.v2.Folder folder)
Constructs an instance of FolderInfo.
|
| Modifier and Type | Method and Description |
|---|---|
static com.google.storage.control.v2.Folder |
createFolderInfoObject(String bucketName,
String folderName)
Returns the folder object with provided bucket and path
|
String |
getBucket()
Gets the path of this file or directory.
|
String |
getFolderName()
Returns the folder name, ie path excluding the bucket name
|
String |
getParentFolderName()
Returns the parent folder name if exists, else returns empty string
|
boolean |
isBucket() |
String |
toString()
Gets string representation of this instance.
|
public static final String BUCKET_PREFIX
public static final String FOLDER_PREFIX
public static final String PATH
public FolderInfo(@Nonnull com.google.storage.control.v2.Folder folder)
folder - Information about the underlying folder.public static com.google.storage.control.v2.Folder createFolderInfoObject(String bucketName, String folderName)
bucketName - folderName - public String getBucket()
public String getFolderName()
public boolean isBucket()
public String getParentFolderName()
Copyright © 2024. All rights reserved.